initial import
This commit is contained in:
53
markmywords/discount.patch
Normal file
53
markmywords/discount.patch
Normal file
@@ -0,0 +1,53 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4a7131e..87d2386 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -2,26 +2,6 @@ project(MarkMyWords)
|
||||
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
-# build the markdown lib
|
||||
-include(ExternalProject)
|
||||
-set(DISCOUNT_DEP_PATH ${CMAKE_SOURCE_DIR}/deps/discount)
|
||||
-set(DISCOUNT_LIB_PATH ${CMAKE_BINARY_DIR}/libmarkdown.a)
|
||||
-set(DISCOUNT_INCLUDE_PATH ${DISCOUNT_DEP_PATH})
|
||||
-
|
||||
-ExternalProject_Add(discount
|
||||
- PREFIX ${DISCOUNT_DEP_PATH}
|
||||
- SOURCE_DIR ${DISCOUNT_DEP_PATH}
|
||||
- CONFIGURE_COMMAND
|
||||
- ${DISCOUNT_DEP_PATH}/configure.sh --src=${DISCOUNT_DEP_PATH}
|
||||
- --prefix=${CMAKE_BINARY_DIR}
|
||||
- --libdir=${CMAKE_BINARY_DIR}
|
||||
- --with-fenced-code
|
||||
- BUILD_COMMAND make install
|
||||
- BUILD_IN_SOURCE 1
|
||||
-)
|
||||
-
|
||||
-include_directories(${DISCOUNT_INCLUDE_PATH})
|
||||
-
|
||||
# build UI lib
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
|
||||
@@ -39,6 +19,7 @@ pkg_check_modules(DEPS REQUIRED
|
||||
gtksourceview-3.0>=3.10
|
||||
gthread-2.0
|
||||
gtk+-3.0>=3.9.10
|
||||
+ libmarkdown
|
||||
)
|
||||
|
||||
add_definitions(${DEPS_CFLAGS})
|
||||
@@ -115,13 +96,6 @@ OPTIONS
|
||||
|
||||
add_executable(mark-my-words ${VALA_C} ${generated_resources})
|
||||
|
||||
-target_link_libraries(mark-my-words
|
||||
- ${DISCOUNT_LIB_PATH})
|
||||
-
|
||||
-add_dependencies(mark-my-words
|
||||
- discount
|
||||
-)
|
||||
-
|
||||
install(TARGETS mark-my-words RUNTIME
|
||||
DESTINATION bin)
|
||||
|
||||
Reference in New Issue
Block a user