90efdf9c8b
It provides some APIs for binding developers, so that they can validate the type of the js argument and convert/assign them to the native argument. Related Issue: #1716 JerryScript-DCO-1.0-Signed-off-by: Martijn The martijn.the@intel.com JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
33 lines
1.1 KiB
CMake
33 lines
1.1 KiB
CMake
# Copyright JS Foundation and other contributors, http://js.foundation
|
|
#
|
|
# 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.
|
|
|
|
cmake_minimum_required (VERSION 2.8.12)
|
|
set(JERRY_EXT_NAME jerry-ext)
|
|
project (${JERRY_EXT_NAME} C)
|
|
|
|
# Include directories
|
|
set(INCLUDE_EXT "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
|
|
# Source directories
|
|
file(GLOB SOURCE_EXT arg/*.c)
|
|
|
|
add_library(${JERRY_EXT_NAME} STATIC ${SOURCE_EXT})
|
|
|
|
target_include_directories(${JERRY_EXT_NAME} PUBLIC ${INCLUDE_EXT})
|
|
|
|
target_link_libraries(${JERRY_EXT_NAME} jerry-core)
|
|
|
|
install(TARGETS ${JERRY_EXT_NAME} DESTINATION lib)
|
|
install(DIRECTORY ${INCLUDE_EXT}/ DESTINATION include)
|