Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
b51da5e5
Commit
b51da5e5
authored
Apr 11, 2016
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #482 from markdrayton/lua-outside-source-build
bcc-lua: build bcc.lua and bcc.o in the build tree
parents
a3771944
80f52c17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
src/lua/CMakeLists.txt
src/lua/CMakeLists.txt
+6
-8
src/lua/squishy
src/lua/squishy
+1
-1
No files found.
src/lua/CMakeLists.txt
View file @
b51da5e5
...
...
@@ -5,21 +5,19 @@ if (LUAJIT_LIBRARIES)
FILE
(
GLOB_RECURSE SRC_LUA
${
CMAKE_CURRENT_SOURCE_DIR
}
/bcc/*/*.lua
)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/
bcc.lua
COMMAND
${
LUAJIT
}
src/squish.lua
OUTPUT bcc.lua
COMMAND
${
LUAJIT
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/squish.lua
${
CMAKE_CURRENT_SOURCE_DIR
}
DEPENDS
${
SRC_LUA
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/squishy
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/bcc.o
COMMAND
${
LUAJIT
}
-bg src/bcc.lua src/bcc.o
DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/bcc.lua
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
OUTPUT bcc.o
COMMAND
${
LUAJIT
}
-bg bcc.lua bcc.o
DEPENDS bcc.lua
)
include_directories
(
${
LUAJIT_INCLUDE_DIR
}
)
add_executable
(
bcc-lua src/main.c
src/
bcc.o
)
add_executable
(
bcc-lua src/main.c bcc.o
)
target_link_libraries
(
bcc-lua
${
LUAJIT_LIBRARIES
}
)
install
(
TARGETS bcc-lua RUNTIME DESTINATION bin
)
...
...
src/lua/squishy
View file @
b51da5e5
...
...
@@ -14,4 +14,4 @@ Module "bcc.table" "bcc/table.lua"
Module "bcc.ld" "bcc/ld.lua"
Main "bcc/run.lua"
Output "
src/
bcc.lua"
Output "bcc.lua"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment