improve for awtk-web

This commit is contained in:
xianjimli 2020-08-17 10:46:54 +08:00
parent 18a59cad5d
commit a0f091156c
5 changed files with 29 additions and 25 deletions

View File

@ -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,

View File

@ -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
View 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"]
}
}

View File

@ -1,2 +1,2 @@
#include "awtk.h"
#include "../res/assets.inc"
#include "assets.inc"

View File

@ -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"]
}
}