Files
flipper/android/third-party/overrides/glog/CMakeLists.txt
Pascal Hartig cd6a5f9ff8 Reorganize native dep download and extraction (#154)
Summary:
This moves the native setup to a separate gradle file and unpacks everything outside the build folder. That way we don't throw everything away on every incremental build.

This is an intermediate step to get to a more declarative setup like Fresco has it and get rid of the individual hacks we have for every download.
Pull Request resolved: https://github.com/facebook/Sonar/pull/154

Reviewed By: jknoxville

Differential Revision: D8833812

Pulled By: passy

fbshipit-source-id: 2424c9d6e22e6092c04af344e06939b4a6aba041
2018-07-16 10:26:10 -07:00

45 lines
1.2 KiB
CMake

cmake_minimum_required (VERSION 3.6.0)
PROJECT(glog CXX)
enable_language(CXX)
set(PACKAGE_NAME glog)
set(glog_DIR glog-0.3.5)
list(APPEND dir_list ./../)
list(APPEND dir_list ./)
list(APPEND dir_list ${glog_DIR}/)
list(APPEND dir_list ${glog_DIR}/src)
list(APPEND dir_list ${glog_DIR}/glog)
list(APPEND dir_list ${glog_DIR}/base)
include_directories(${dir_list})
add_compile_options(
-std=c++11
-Wno-macro-redefined
-Wno-macro-redefined
-Wall
-Wwrite-strings
-Woverloaded-virtual
-Wno-sign-compare
-DNDEBUG
-g
-O2
-D_START_GOOGLE_NAMESPACE_="namespace google {"
-D_END_GOOGLE_NAMESPACE_="}"
)
list(APPEND src_files ${glog_DIR}/src/demangle.cc
${glog_DIR}/src/logging.cc
${glog_DIR}/src/raw_logging.cc
${glog_DIR}/src/signalhandler.cc
${glog_DIR}/src/symbolize.cc
${glog_DIR}/src/utilities.cc
${glog_DIR}/src/vlog_is_on.cc
)
add_library(${PACKAGE_NAME} SHARED ${src_files})
install(TARGETS ${PACKAGE_NAME} DESTINATION ./build/)
target_link_libraries(${PACKAGE_NAME})