提交 83da201e 编写于 作者: 热情的rhew's avatar 热情的rhew

ace

上级

要显示的变更太多。

To preserve performance only 1000 of 1000+ files are displayed.
cmake_minimum_required(VERSION 3.10.0)
project(Previewer LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 11)
add_compile_options(-Wno-narrowing -Wcpp -Wno-attributes)
set(JERRY_EXTERNAL_CONTEXT ON)
set(JERRY_DEBUGGER ON)
add_subdirectory(${PROJECT_SOURCE_DIR}/base/global/frameworks/resmgr_lite)
add_subdirectory(${PROJECT_SOURCE_DIR}/foundation/graphic/lite)
add_subdirectory(${PROJECT_SOURCE_DIR}/foundation/ace/frameworks/lite)
add_subdirectory(${PROJECT_SOURCE_DIR}/utils/native/lite/js/builtin)
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
/*
* Copyright (c) 2020 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_ACELITE_CONFIG_H
#define OHOS_ACELITE_CONFIG_H
/**
* ================================================================================================
* config for win simulator
* ================================================================================================
*/
#define OHOS_ACELITE_SIMULATOR_WIN // NOTE: DO NOT use this macro directly
#define JSFWK_TEST
/**
* The macro is used to distingush the real device and simulator.
*/
#define TARGET_SIMULATOR
/**
* Compile all test entry for hmf
*/
#ifdef FEATURE_TEST_IMPLEMENTATION
#error "must keep the global configuration unique"
#else
#define FEATURE_TEST_IMPLEMENTATION
#endif
/**
* enable FeatureAbility API
*/
//#define FEATURE_FEATURE_ABILITY_MODULE
/**
* support device API for JS
*/
#define FEATURE_MODULE_DEVICE
/**
* support geo location API for JS
*/
//#define FEATURE_MODULE_GEO
/**
* support sensor API for JS
*/
//#define FEATURE_MODULE_SENSOR
/**
* support brightness API for JS
*/
//#define FEATURE_MODULE_BRIGHTNESS
/**
* support battery API for JS
*/
//#define FEATURE_MODULE_BATTERY
/**
* support configuration API for JS
*/
//#define FEATURE_MODULE_CONFIGURATION
/**
* timer module
*/
//#define FEATURE_TIMER_MODULE
/**
* support storage API for JS
*/
//#define FEATURE_MODULE_STORAGE
/**
* localization module
*/
//#define FEATURE_LOCALIZATION_MODULE