forked from vivkin/gason
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build android shootout version with CMake
- Loading branch information
Showing
8 changed files
with
62 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
.DS_Store | ||
*.swp | ||
build | ||
debug | ||
release | ||
test | ||
vjson | ||
build-debug | ||
build-release | ||
ruberoid/bin | ||
ruberoid/libs | ||
ruberoid/build.xml | ||
ruberoid/local.properties | ||
ruberoid/proguard-project.txt | ||
ruberoid/project.properties | ||
sajson | ||
rapidjson | ||
shootout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
cmake_minimum_required(VERSION 2.8.12) | ||
project(gason) | ||
|
||
option(SHOOTOUT "Build parser-shootout" OFF) | ||
|
||
add_compile_options(-O3 -std=c++11 -fno-rtti -fno-exceptions -Wall -Wextra) | ||
|
||
add_executable(gasonpp src/gason.cpp src/pretty-print.cpp) | ||
add_executable(test-suite src/gason.cpp src/test-suite.cpp) | ||
if(SHOOTOUT) | ||
add_executable(parser-shootout src/parser-shootout.cpp | ||
src/gason.cpp | ||
vjson/block_allocator.cpp | ||
vjson/json.cpp) | ||
if(ANDROID) | ||
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/ruberoid/libs/${ANDROID_ABI}) | ||
include_directories(${ANDROID_NDK}/sources/android/native_app_glue) | ||
link_libraries(android log) | ||
add_library(parser-shootout SHARED src/parser-shootout.cpp src/gason.cpp ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c) | ||
else() | ||
add_executable(gasonpp src/gason.cpp src/pretty-print.cpp) | ||
add_executable(test-suite src/gason.cpp src/test-suite.cpp) | ||
option(SHOOTOUT "Build parser-shootout" OFF) | ||
if(SHOOTOUT) | ||
add_executable(parser-shootout src/parser-shootout.cpp src/gason.cpp) | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">NativeActivity</string> | ||
<string name="app_name">Json Parser Shootout</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters