mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
improve for awtk-web
This commit is contained in:
parent
18a59cad5d
commit
a0f091156c
@ -9,7 +9,7 @@ DefaultEnvironment(TOOLS = APP_TOOLS,
|
||||
CCFLAGS = awtk.AWTK_CCFLAGS,
|
||||
LIBS = awtk.LIBS,
|
||||
LIBPATH = awtk.LIBPATH,
|
||||
CPPPATH = awtk.CPPPATH,
|
||||
CPPPATH = awtk.CPPPATH + [awtk.joinPath(awtk.TK_ROOT, 'res')],
|
||||
LINKFLAGS = awtk.LINKFLAGS,
|
||||
TARGET_ARCH=awtk.TARGET_ARCH,
|
||||
OS_SUBSYSTEM_CONSOLE=awtk.OS_SUBSYSTEM_CONSOLE,
|
||||
|
@ -302,6 +302,10 @@ def copySharedLib(src, dst, name):
|
||||
|
||||
src = os.path.normpath(src);
|
||||
dst = os.path.normpath(dst);
|
||||
|
||||
if os.path.dirname(src) == dst:
|
||||
return
|
||||
|
||||
if not os.path.exists(src):
|
||||
print('Can\'t find ' + src + '. Please build '+name+'before!')
|
||||
else:
|
||||
|
23
build.json
Normal file
23
build.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"name":"demoui",
|
||||
"version":"1.0",
|
||||
"assets" : "res/assets",
|
||||
"author" : "xianjimli@hotmail.com",
|
||||
"copyright" : "Guangzhou ZHIYUAN Electronics Co.,Ltd.",
|
||||
"web": {
|
||||
"app_type":"c",
|
||||
"sources":["demos/demo_ui_app.c", "demos/assets.c"],
|
||||
"config" : {
|
||||
"fontScale":"0.8",
|
||||
"defaultFont":"sans"
|
||||
}
|
||||
},
|
||||
"android" : {
|
||||
"app_name":"org.zlgopen.demoui",
|
||||
"sources":["demos/assets.c", "demos/assets.h", "demos/demo_ui_app.c", "demos/vg_common.inc", "res/assets.inc", "res/assets/__assets_default.inc"]
|
||||
},
|
||||
"ios" : {
|
||||
"app_name":"org.zlgopen.demoui",
|
||||
"sources":["demos/assets.c", "demos/assets.h", "demos/demo_ui_app.c", "demos/vg_common.inc", "res/assets.inc", "res/assets/__assets_default.inc"]
|
||||
}
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
#include "awtk.h"
|
||||
#include "../res/assets.inc"
|
||||
#include "assets.inc"
|
||||
|
@ -1,23 +0,0 @@
|
||||
{
|
||||
"name":"demoui",
|
||||
"version":"1.0",
|
||||
"assets" : "assets",
|
||||
"author" : "xianjimli@hotmail.com",
|
||||
"copyright" : "Guangzhou ZHIYUAN Electronics Co.,Ltd.",
|
||||
"web": {
|
||||
"app_type":"c",
|
||||
"sources":["demo_ui_app.c"],
|
||||
"config" : {
|
||||
"fontScale":"0.8",
|
||||
"defaultFont":"sans"
|
||||
}
|
||||
},
|
||||
"android" : {
|
||||
"app_name":"org.zlgopen.demoui",
|
||||
"sources":["assets.c", "assets/__assets_dark.inc", "assets/__assets_default.inc", "assets.h", "demo_ui_app.c", "vg_common.inc"]
|
||||
},
|
||||
"ios" : {
|
||||
"app_name":"org.zlgopen.demoui",
|
||||
"sources":["assets.c", "assets/__assets_dark.inc", "assets/__assets_default.inc", "assets.h", "demo_ui_app.c", "vg_common.inc"]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user