feat(bin): add linja.in and LEAN_BIN_DEP cmake option
see the discussion in issue #422
This commit is contained in:
parent
dc297865d4
commit
ca16381892
4 changed files with 14 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -22,5 +22,3 @@ CMakeFiles/
|
|||
doc/html
|
||||
make.deps
|
||||
src/emacs/dependencies
|
||||
bin/leanemacs
|
||||
bin/leanemacs.bat
|
3
bin/.gitignore
vendored
3
bin/.gitignore
vendored
|
@ -1,4 +1,7 @@
|
|||
lean
|
||||
lean.exe
|
||||
leanemacs
|
||||
leanemacs.bat
|
||||
linja
|
||||
python_lib/six.pyc
|
||||
python_lib/__init__.pyc
|
||||
|
|
|
@ -102,6 +102,7 @@ g_leantags_path = "USE DEFAULT" # System will search automatically
|
|||
g_ninja_path = "USE DEFAULT" # System will search automatically
|
||||
g_flycheck_header = "FLYCHECK_BEGIN"
|
||||
g_flycheck_footer = "FLYCHECK_END"
|
||||
g_lean_bin_dep_flag= "@LEAN_BIN_DEP@" == "ON"
|
||||
|
||||
g_logger = logging.getLogger('linja_logger')
|
||||
g_debug_mode = False
|
||||
|
@ -609,9 +610,12 @@ def clear_cache(args):
|
|||
def build_olean(lean, olean, clean, dlean, ilean, base):
|
||||
(lean, olean, clean, dlean, ilean, base) = list(map(escape_ninja_char, (lean, olean, clean, dlean, ilean, base)))
|
||||
if clean.startswith(base):
|
||||
str = """build %s %s %s: LEAN %s | %s\n""" % (olean, ilean, clean, lean, dlean)
|
||||
str = """build %s %s %s: LEAN %s | %s""" % (olean, ilean, clean, lean, dlean)
|
||||
else:
|
||||
str = """build %s %s: LEAN %s | %s\n""" % (olean, ilean, lean, dlean)
|
||||
str = """build %s %s: LEAN %s | %s""" % (olean, ilean, lean, dlean)
|
||||
if g_lean_bin_dep_flag:
|
||||
str += " %s" % g_lean_path
|
||||
str += "\n"
|
||||
str += " DLEAN_FILE=%s\n" % dlean
|
||||
str += " OLEAN_FILE=%s\n" % olean
|
||||
str += " CLEAN_FILE=%s\n" % clean
|
|
@ -33,6 +33,8 @@ option(CROSS_COMPILE "CROSS_COMPILE" OFF)
|
|||
option(CONSERVE_MEMORY "CONSERVE_MEMORY" OFF)
|
||||
# Include MSYS2 required DLLs and binaries in the binary distribution package
|
||||
option(INCLUDE_MSYS2_DLLS "INCLUDE_MSYS2_DLLS" OFF)
|
||||
# When ON we add lean binary dependency to standard and HOTT libraries
|
||||
option(LEAN_BIN_DEP "LEAN_BIN_DEP" ON)
|
||||
# Directory that include lean emacs mode dependecies
|
||||
set(EMACS_DEPENDENCIES "${CMAKE_SOURCE_DIR}/emacs/dependencies")
|
||||
|
||||
|
@ -299,6 +301,9 @@ configure_file("${LEAN_SOURCE_DIR}/version.h.in" "${LEAN_BINARY_DIR}/version.h")
|
|||
configure_file("${LEAN_SOURCE_DIR}/../bin/leanemacs.in" "${LEAN_SOURCE_DIR}/../bin/leanemacs")
|
||||
configure_file("${LEAN_SOURCE_DIR}/../bin/leanemacs.bat.in" "${LEAN_SOURCE_DIR}/../bin/leanemacs.bat")
|
||||
|
||||
# linja
|
||||
configure_file("${LEAN_SOURCE_DIR}/../bin/linja.in" "${LEAN_SOURCE_DIR}/../bin/linja" @ONLY)
|
||||
|
||||
include_directories("${LEAN_BINARY_DIR}")
|
||||
add_subdirectory(util)
|
||||
set(LEAN_LIBS ${LEAN_LIBS} util)
|
||||
|
|
Loading…
Reference in a new issue