2 Star 0 Fork 0

zhangzhongji/practice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
SConstruct 982 Bytes
一键复制 编辑 原始数据 按行查看 历史
env = Environment(CCFLAGS = '-g')
env['PLATFORM'] = 'win32'
#gtest库
gtestFile = [ '3rd/gtest/googletest/src/gtest-all.cc']
gmainFile = [ '3rd/gtest/googletest/src/gtest_main.cc']
#word count and parse word 库
wordCountFile = [ 'src/word_count.c']
parseWordsFile = [ 'src/word_parser.c', 'src/log.c']
#sourceFile
sourceFile = [ 'tests/word_count_test.cpp']
includePath = [ '3rd/gtest/googletest/include', '3rd/gtest/googletest', './src']
libPath = [ '3rd/gtest/googletest/lib', './bin']
libs = [ 'gtest', 'gtest_main', 'word_count' , 'parse_word']
StaticLibrary('3rd/gtest/googletest/lib/gtest',source=gtestFile,CPPPATH=includePath)
StaticLibrary('3rd/gtest/googletest/lib/gtest_main',source=gmainFile,CPPPATH=includePath)
StaticLibrary('bin/word_count',source=wordCountFile,CPPPATH=includePath)
StaticLibrary('bin/parse_word',source=parseWordsFile,CPPPATH=includePath)
env.Program( 'bin/word_count_test', source=sourceFile,CPPPATH=includePath,LIBS=libs,LIBPATH=libPath)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zhangzhongji/practice.git
[email protected]:zhangzhongji/practice.git
zhangzhongji
practice
practice
master

搜索帮助