Separate app-manager and app-framework from WAMR (#3129)
As planned, the app-manager and app-framework are to be migrated to https://github.com/bytecodealliance/wamr-app-framework. ps. https://github.com/bytecodealliance/wasm-micro-runtime/issues/2329 https://github.com/bytecodealliance/wasm-micro-runtime/wiki/TSC-meeting-notes
This commit is contained in:
@ -1,20 +0,0 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(wgl)
|
||||
|
||||
set (WAMR_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../)
|
||||
|
||||
include_directories(
|
||||
${WAMR_ROOT_DIR}/wamr-sdk/out/gui/app-sdk/wamr-app-framework/include
|
||||
${WAMR_ROOT_DIR}/core/deps
|
||||
)
|
||||
|
||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS},-L${WAMR_ROOT_DIR}/wamr-sdk/out/gui/app-sdk/wamr-app-framework/lib")
|
||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS},--export=on_init,--export=on_timer_callback,--export=on_widget_event,--export=__heap_base,--export=__data_end")
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -Wno-unused-command-line-argument")
|
||||
|
||||
add_executable(ui_increase.wasm
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/main.c
|
||||
)
|
||||
|
||||
target_link_libraries(ui_increase.wasm app_framework)
|
||||
@ -1,34 +0,0 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
CC = /opt/wasi-sdk/bin/clang
|
||||
APP_DIR = ${shell pwd}
|
||||
IWASM_DIR = ../../../../core/iwasm
|
||||
APP_FRAMEWORK_DIR = ../../../../core/app-framework
|
||||
DEPS_DIR = ../../../../core/deps
|
||||
|
||||
CFLAGS += -O3 \
|
||||
-Wno-int-conversion \
|
||||
-I$(APP_DIR)/src \
|
||||
-I$(APP_FRAMEWORK_DIR)/base/app \
|
||||
-I$(APP_FRAMEWORK_DIR)/app-native-shared \
|
||||
-I$(APP_FRAMEWORK_DIR)/sensor/app \
|
||||
-I$(APP_FRAMEWORK_DIR)/wgl/app \
|
||||
-I$(APP_FRAMEWORK_DIR)/connection/app \
|
||||
-I${DEPS_DIR}
|
||||
|
||||
SRCS += $(APP_DIR)/src/main.c
|
||||
|
||||
# For app size consideration, not all but necessary app libs are included
|
||||
SRCS += $(APP_FRAMEWORK_DIR)/base/app/timer.c
|
||||
SRCS += $(APP_FRAMEWORK_DIR)/wgl/app/src/*.c
|
||||
|
||||
all:
|
||||
@$(CC) $(CFLAGS) $(SRCS) \
|
||||
--target=wasm32-wasi -O3 -z stack-size=2048 -Wl,--initial-memory=65536 \
|
||||
-nostdlib -Wl,--allow-undefined \
|
||||
-Wl,--strip-all,--no-entry \
|
||||
-Wl,--export=on_init -Wl,--export=on_timer_callback \
|
||||
-Wl,--export=on_widget_event \
|
||||
-Wl,--export=__heap_base,--export=__data_end \
|
||||
-o ui_app.wasm
|
||||
Reference in New Issue
Block a user