forked from floooh/fips-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4251330
Showing
8 changed files
with
61 additions
and
0 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,7 @@ | ||
.DS_Store | ||
.vscode/ | ||
#>fips | ||
# this area is managed by fips, do not edit | ||
.fips-* | ||
*.pyc | ||
#<fips |
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,3 @@ | ||
[submodule "lua"] | ||
path = 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if (NOT FIPS_IMPORT) | ||
cmake_minimum_required(VERSION 2.8) | ||
get_filename_component(FIPS_ROOT_DIR "../fips" ABSOLUTE) | ||
include("${FIPS_ROOT_DIR}/cmake/fips.cmake") | ||
fips_setup(PROJECT lua) | ||
endif() | ||
|
||
fips_begin_lib(lua) | ||
fips_src(lua NO_RECURSE) | ||
fips_end_lib() | ||
|
||
if (NOT FIPS_IMPORT) | ||
fips_finish() | ||
endif() | ||
|
||
|
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 @@ | ||
# fips-lua | ||
|
||
fipsified LUA sources from https://github.com/lua/lua | ||
|
||
fips build system: https://github.com/floooh/fips | ||
|
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 @@ | ||
#!/usr/bin/env python | ||
"""fips main entry""" | ||
import os | ||
import sys | ||
import subprocess | ||
proj_path = os.path.dirname(os.path.abspath(__file__)) | ||
fips_path = os.path.dirname(proj_path) + '/fips' | ||
if not os.path.isdir(fips_path) : | ||
print("\033[93m=== cloning fips build system to '{}':\033[0m".format(fips_path)) | ||
subprocess.call(['git', 'clone', 'https://github.com/floooh/fips.git', fips_path]) | ||
sys.path.insert(0,fips_path) | ||
try : | ||
from mod import fips | ||
except ImportError : | ||
print("\033[91m[ERROR]\033[0m failed to initialize fips build system in '{}'".format(proj_path)) | ||
sys.exit(10) | ||
fips.run(fips_path, proj_path, sys.argv) |
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,2 @@ | ||
@python fips %* | ||
|
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 @@ | ||
# | ||
# fips-lua | ||
# | ||
--- | ||
exports: | ||
header-dirs: [ . ] | ||
modules: | ||
lua: . | ||
|