feat(linker): TPC 支持 project.vpj 静态链接 .a/.obj,ViperFLProject 配置 fltk
- Config.py 读取 linker.static_libs(相对 vpj 目录解析为绝对路径) - Phase2Translator 新增 static_libs 参数,并入 extra_link_files 参与链接 - ViperFLProject 改为 fltk GUI 测试:static_libs 链接 cfltk2 + FLTK 静态库 - 新增 FLTK 所需系统库 flags(comdlg32/comctl32/ole32/uuid/winmm/gdi32)
This commit is contained in:
1 parent
6892183cc9
commit
ca1e58f6fa
5 files changed
+394
No files matched your search
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "ViperFLProject - FLTK GUI Test",
|
||||
"version": "1.0.0",
|
||||
"source_dir": "./App",
|
||||
"build_dir": "./.tpv_build",
|
||||
"compiler": {
|
||||
"cmd": "llc",
|
||||
"flags": [
|
||||
"-filetype=obj",
|
||||
"-relocation-model=pic"
|
||||
]
|
||||
},
|
||||
"linker": {
|
||||
"cmd": "clang++",
|
||||
"flags": [
|
||||
"-lmsvcrt",
|
||||
"-lucrt",
|
||||
"-lpthread",
|
||||
"-lmingwex",
|
||||
"-lkernel32",
|
||||
"-Wl,--allow-multiple-definition",
|
||||
"-lcomdlg32",
|
||||
"-lcomctl32",
|
||||
"-lole32",
|
||||
"-luuid",
|
||||
"-lwinmm",
|
||||
"-lgdi32"
|
||||
],
|
||||
"static_libs": [
|
||||
"../includes/fltk/cfltk/build/libcfltk2.a",
|
||||
"../includes/fltk/cfltk/build/fltk/lib/libfltk_images.a",
|
||||
"../includes/fltk/cfltk/build/fltk/lib/libfltk.a",
|
||||
"../includes/fltk/cfltk/build/fltk/lib/libfltk_png.a",
|
||||
"../includes/fltk/cfltk/build/fltk/lib/libfltk_jpeg.a",
|
||||
"../includes/fltk/cfltk/build/fltk/lib/libfltk_z.a"
|
||||
],
|
||||
"output": "app.exe"
|
||||
},
|
||||
"includes": [
|
||||
"../includes"
|
||||
],
|
||||
"target": {
|
||||
"triple": "x86_64-pc-windows-gnu",
|
||||
"datalayout": "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
||||
},
|
||||
"options": {
|
||||
"slice_level": 3,
|
||||
"target": "llvm",
|
||||
"strict_mode": true
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user