Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jun 22, 2017
0 parents commit 4251330
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
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
3 changes: 3 additions & 0 deletions .gitmodules
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
16 changes: 16 additions & 0 deletions CMakeLists.txt
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()


6 changes: 6 additions & 0 deletions README.md
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

17 changes: 17 additions & 0 deletions fips
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)
2 changes: 2 additions & 0 deletions fips.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@python fips %*

9 changes: 9 additions & 0 deletions fips.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# fips-lua
#
---
exports:
header-dirs: [ . ]
modules:
lua: .

1 change: 1 addition & 0 deletions lua
Submodule lua added at e354c6

0 comments on commit 4251330

Please sign in to comment.