-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
32 lines (25 loc) · 672 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 2.6)
project(v8)
file(GLOB_RECURSE src_list "v8/src/*.c*")
add_library(v8 ${src_list})
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin/${BUILD_TYPE})
add_definitions(
-DV8_NO_FAST_TLS=1
-DV8_DEPRECATION_WARNINGS=1
-DENABLE_HANDLE_ZAPPING=1
)
set(CMAKE_CXX_FLAGS "-std=c++11")
if(${BUILD_TYPE} STREQUAL "debug")
add_definitions(
-DVERIFY_HEAP=1
-DOBJECT_PRINT=1
-DENABLE_DISASSEMBLER=1
-DV8_ENABLE_CHECKS=1
-DTRACE_MAPS=1
-DENABLE_SLOW_DCHECKS=1
-DDEBUG=1
)
endif()
include_directories("${PROJECT_SOURCE_DIR}/v8/include")
include_directories("${PROJECT_SOURCE_DIR}/v8/")
include_directories("/usr/local/include/")