forked from derzzle/QLColorCode
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Should build on systems with either MacPorts or Homebrew * colorize.sh: specify resource directory as data path to highlight * Common: only use highlight in the bundle * Add highlight and lua submodules * Apply patches target (runs before building Lua) * Add note about building * Fix CI * Remove check for BUILD_STYLE * readme: add note about installation from MacPorts
- Loading branch information
1 parent
37a5098
commit c8b793b
Showing
12 changed files
with
423 additions
and
29 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "hl/highlight"] | ||
path = hl/highlight | ||
url = https://gitlab.com/saalen/highlight.git | ||
[submodule "hl/lua"] | ||
path = hl/lua | ||
url = https://github.com/lua/lua.git |
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,3 +1,6 @@ | ||
addons: | ||
homebrew: | ||
packages: | ||
- boost | ||
language: objective-c | ||
xcode_project: QLColorCode.xcodeproj | ||
xcode_scheme: Travis | ||
script: set -o pipefail && xcodebuild -project QLColorCode.xcodeproj -scheme Travis build | xcpretty |
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" | ||
cd "$DIR" | ||
for i in lua highlight | ||
do | ||
pushd "$i" | ||
git checkout . || true | ||
patch -p1 < "../${i}.patch" | ||
popd | ||
done |
Submodule highlight
added at
e55d1f
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/src/makefile b/src/makefile | ||
index 9d0a08e..0a7a833 100644 | ||
--- a/src/makefile | ||
+++ b/src/makefile | ||
@@ -43,8 +43,8 @@ ifeq (${LUA_TEST},1) | ||
LUA_PKG_NAME=lua | ||
endif | ||
|
||
-LUA_CFLAGS=$(shell pkg-config --cflags ${LUA_PKG_NAME}) | ||
-LUA_LIBS=$(shell pkg-config --libs ${LUA_PKG_NAME}) | ||
+LUA_CFLAGS=-I../../lua -I../.. | ||
+LUA_LIBS=../../lua/liblua.a | ||
|
||
# luajit lib | ||
# LUA_LIBS=$(shell pkg-config --libs luajit) | ||
@@ -75,7 +75,7 @@ LDFLAGS = -ldl | ||
#LDFLAGS = ${LDFLAGS} -s | ||
#LDFLAGS= -Wl,--as-needed | ||
|
||
-CXX_COMPILE=${CXX} ${CFLAGS} -c -I ${INCLUDE_DIR} ${LUA_CFLAGS} | ||
+CXX_COMPILE=${CXX} ${CFLAGS} -c -I /opt/local/include -I /usr/local/include -I ${INCLUDE_DIR} ${LUA_CFLAGS} | ||
|
||
# Data directories (data dir, configuration file dir) | ||
CXX_DIR=-DHL_DATA_DIR=\"${HL_DATA_DIR}\" -DHL_CONFIG_DIR=\"${HL_CONFIG_DIR}\" |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// lua.hpp | ||
// Lua header files for C++ | ||
// <<extern "C">> not supplied automatically because Lua also compiles as C++ | ||
|
||
extern "C" { | ||
#include "lua.h" | ||
#include "lualib.h" | ||
#include "lauxlib.h" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/makefile b/makefile | ||
index 9e537dcc..d275b809 100644 | ||
--- a/makefile | ||
+++ b/makefile | ||
@@ -60,9 +60,9 @@ LOCAL = $(TESTS) $(CWARNS) | ||
|
||
|
||
# enable Linux goodies | ||
-MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_USE_READLINE | ||
-MYLDFLAGS= $(LOCAL) -Wl,-E | ||
-MYLIBS= -ldl -lreadline | ||
+MYCFLAGS= $(LOCAL) -std=c99 | ||
+MYLDFLAGS= $(LOCAL) | ||
+MYLIBS= -ldl | ||
|
||
|
||
CC= gcc |
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 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