-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add. rockspec and appveyor.yml files.
- Loading branch information
Showing
4 changed files
with
109 additions
and
59 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
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,32 @@ | ||
version: 0.1.0.{build} | ||
|
||
environment: | ||
matrix: | ||
- LUA: "lua 5.1" | ||
- LUA: "lua 5.2" | ||
- LUA: "lua 5.3" | ||
|
||
platform: | ||
- x64 | ||
- x86 | ||
|
||
before_build: | ||
- set PATH=C:\Python27\Scripts;%PATH% | ||
- pip install hererocks | ||
- if /I "%platform%"=="x86" set HR_TARGET=vs_32 | ||
- if /I "%platform%"=="x64" set HR_TARGET=vs_64 | ||
- hererocks env --%LUA% --target %HR_TARGET% -rlatest | ||
- call env\bin\activate | ||
|
||
build_script: | ||
- luarocks make rockspecs\winreg-scm-0.rockspec | ||
|
||
test_script: | ||
- cd test | ||
- lua test_1.lua | ||
- lua test_5_1_5.lua | ||
- lua test_5_1_6.lua | ||
- lua test_5_1_8.lua | ||
- lua test_5_1_9.lua | ||
- lua test_5_1_10.lua | ||
- lua test_5_1_13.lua |
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,47 @@ | ||
package = "winreg" | ||
version = "scm-0" | ||
source = { | ||
url = "https://github.com/moteus/lua-winreg/archive/master.zip", | ||
dir = "lua-winreg-master", | ||
} | ||
|
||
description = { | ||
summary = "Lua module to Access Microsoft(R) Windows(R) Registry", | ||
homepage = "http://github.com/moteus/lua-winreg", | ||
license = "MIT/X11", | ||
detailed = [[ | ||
]], | ||
} | ||
|
||
supported_platforms = { | ||
"windows" | ||
} | ||
|
||
dependencies = { | ||
"lua >= 5.1, < 5.4", | ||
} | ||
|
||
build = { | ||
type = "builtin", | ||
|
||
copy_directories = {'doc', 'examples', 'test'}, | ||
|
||
modules = { | ||
winreg = { | ||
sources = { | ||
"src/l52util.c", "src/lua_int64.c", "src/lua_mtutil.c", "src/lua_tstring.c", | ||
"src/luawin_dllerror.c", "src/win_privileges.c", "src/win_registry.c", | ||
"src/win_trace.c", "src/winreg.c", | ||
}, | ||
defines = { | ||
"WIN32"; "_WIN32"; "_WINDOWS", | ||
"WIN32_LEAN_AND_MEAN"; "WINDLL"; "USRDLL", | ||
"NDEBUG", "_CRT_SECURE_NO_WARNINGS", | ||
"CRTAPI1=_cdecl", "CRTAPI2=_cdecl", | ||
"WINREG_EXPORTS", "WINREG_API=__declspec(dllexport)" | ||
}, | ||
libraries = {"advapi32", "kernel32", "user32"}, | ||
} | ||
} | ||
} | ||
|