我正在尝试将一个生成文件从另一个构建系统转换为waf。
我正在尝试将waf定向到包含必要dll的目录。
但是,在运行waf时配置:
Checking for library libiconv2 : not found
它找不到所需的库。
目录结构:
project/ | build/ | inc/ | | XGetopt.h | | common.h | | define.h | | libpst.h | | libstrfunc.h | | lzfu.h | | msg.h | | timeconv.h | | vbuf.h | libs/ | | libiconv2.dll | | regex2.dll | src/ | | XGetopt.c | | debug.c | | dumpblocks.c | | getidblock.c | | libpst.c | | libstrfunc.c | | lspst.c | | lzfu.c | | readpst.c | | timeconv.c | | vbuf.c | | deltasearch.cpp | | msg.cpp | | nick2ldif.cpp | | pst2dii.cpp | | pst2ldif.cpp | | wscript_build | waf-1.7.10 | wscript
顶级wscript:
#! /usr/bin/env python VERSION = "0.1" APPNAME = "readpst" top = "." # The topmost directory of the waf project out = "build/temp" # The build directory of the waf project import os from waflib import Build from waflib import ConfigSet from waflib import Logs # Variant memory variables var_path = out + "/variant.txt" # The variant memory file path default_variant = "debug" # The default if no variant is stored stored_variant = "" def options(opt): ''' A script hook function that defines addtional switch options for the build. ''' opt.load("compiler_cxx") def configure(cfg): ''' A script hook function that configures the build environment. ''' cfg.load("compiler_cxx") cfg.find_program("strip") cfg.env.PREFIX = "." cfg.env.DEFINES = ["WAF=1"] cfg.env.FEATURES = [] # Additional features cfg.env.LIBPATH = [os.path.join(os.getcwd(), "libs")] print cfg.env.LIBPATH cfg.define("VERSION", VERSION) base_env = cfg.env