Skip to content

Commit 629c6c8

Browse files
author
Thomas Desveaux
committed
Merge remote-tracking branch 'origin/release-5.0-alpha13' into release
2 parents 14a21c3 + e5f3fd6 commit 629c6c8

File tree

386 files changed

+40278
-2476
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

386 files changed

+40278
-2476
lines changed

.editorconfig

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ indent_size = 4
66
tab_width = 4
77
trim_trailing_whitespace = true
88
insert_final_newline = true
9-
charset = utf-8

.travis.yml

+27-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1-
os:
2-
- linux
3-
- osx
1+
language: c++
2+
dist: trusty
3+
sudo: false
4+
matrix:
5+
include:
6+
# Linux Debug
7+
- os: linux
8+
compiler: gcc
9+
env:
10+
- CONFIGURATION=debug
11+
# Linux Release
12+
- os: linux
13+
compiler: gcc
14+
env:
15+
- CONFIGURATION=release
16+
# macOS Debug x86
17+
- os: osx
18+
osx_image: xcode9
19+
env:
20+
- CONFIGURATION=debug
21+
# macOS Release x86
22+
- os: osx
23+
osx_image: xcode9
24+
env:
25+
- CONFIGURATION=release
426

527
script:
6-
- make -f Bootstrap.mak $TRAVIS_OS_NAME
7-
- make -C build/bootstrap -j config=debug
8-
- bin/release/premake5 test
28+
- make -f Bootstrap.mak $TRAVIS_OS_NAME CONFIG=${CONFIGURATION}
29+
- bin/${CONFIGURATION}/premake5 test
930

BUILD.txt

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ BUILDING FROM THE REPOSITORY
2929
If you have pulled sources from the Premake source repository, you can
3030
use `Bootstrap.mak` to generate your first premake executable:
3131

32-
$ git submodule init
33-
$ git submodule update
3432
$ make -f Bootstrap.mak PLATFORM
3533

3634
Where PLATFORM can be osx or linux.

Bootstrap.mak

+20-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
MSDEV = vs2012
2+
CONFIG = release
3+
PLATFORM = x86
24
LUA_DIR = contrib/lua/src
35
LUASHIM_DIR = contrib/luashim
46

@@ -36,8 +38,8 @@ SRC = src/host/*.c \
3638
$(LUA_DIR)/lvm.c \
3739
$(LUA_DIR)/lzio.c \
3840

39-
PLATFORM= none
40-
default: $(PLATFORM)
41+
HOST_PLATFORM= none
42+
default: $(HOST_PLATFORM)
4143

4244
none:
4345
@echo "Please do"
@@ -57,7 +59,7 @@ mingw: $(SRC)
5759
$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $? -lole32
5860
./build/bootstrap/premake_bootstrap embed
5961
./build/bootstrap/premake_bootstrap --os=windows --to=build/bootstrap gmake
60-
$(MAKE) -C build/bootstrap
62+
$(MAKE) -C build/bootstrap config=$(CONFIG)_$(PLATFORM)
6163

6264
osx: $(SRC)
6365
$(SILENT) rm -rf ./bin
@@ -67,7 +69,7 @@ osx: $(SRC)
6769
$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_MACOSX -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" -framework CoreServices -framework Foundation -framework Security -lreadline $?
6870
./build/bootstrap/premake_bootstrap embed
6971
./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake
70-
$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN`
72+
$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN` config=$(CONFIG)
7173

7274
linux: $(SRC)
7375
$(SILENT) rm -rf ./bin
@@ -77,7 +79,7 @@ linux: $(SRC)
7779
$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $? -lm -ldl -lrt
7880
./build/bootstrap/premake_bootstrap embed
7981
./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake
80-
$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN`
82+
$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN` config=$(CONFIG)
8183

8284
bsd: $(SRC)
8385
$(SILENT) rm -rf ./bin
@@ -87,7 +89,17 @@ bsd: $(SRC)
8789
$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $? -lm
8890
./build/bootstrap/premake_bootstrap embed
8991
./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake
90-
$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN`
92+
$(MAKE) -C build/bootstrap -j`getconf NPROCESSORS_ONLN` config=$(CONFIG)
93+
94+
solaris: $(SRC)
95+
$(SILENT) rm -rf ./bin
96+
$(SILENT) rm -rf ./build
97+
$(SILENT) rm -rf ./obj
98+
mkdir -p build/bootstrap
99+
$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $? -lm
100+
./build/bootstrap/premake_bootstrap embed
101+
./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake
102+
$(MAKE) -C build/bootstrap -j`getconf NPROCESSORS_ONLN` config=$(CONFIG)
91103

92104
windows-base: $(SRC)
93105
$(SILENT) if exist .\bin rmdir /s /q .\bin
@@ -100,7 +112,7 @@ windows-base: $(SRC)
100112

101113
windows: windows-base
102114
devenv .\build\bootstrap\Premake5.sln /Upgrade
103-
devenv .\build\bootstrap\Premake5.sln /Build Release
115+
devenv .\build\bootstrap\Premake5.sln /Build "$(CONFIG)|$(PLATFORM:x86=win32)"
104116

105117
windows-msbuild: windows-base
106-
msbuild /p:Configuration=Release /p:Platform=Win32 .\build\bootstrap\Premake5.sln
118+
msbuild /p:Configuration=$(CONFIG) /p:Platform=$(PLATFORM:x86=win32) .\build\bootstrap\Premake5.sln

CHANGES.txt

+112
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,118 @@
55
See https://github.com/premake/premake-core/wiki/What's-New-in-5.0
66
for the complete list of changes from the Premake 4.x series.
77

8+
Since 5.0-alpha12:
9+
10+
* PR #880 Allow tokens to start with a ! to disable making paths relative. (@Blizzard)
11+
* PR #882 Allow filtering on host. (@Blizzard)
12+
* PR #883 Added basic iOS support to XCode4 (@LORgames)
13+
* PR #889 Fix context.mergeFilters (@tdesveaux)
14+
* PR #897 Fix c(pp)dialect generating uppercase C(++)xx for Xcode, replace gnu99 with compiler-default (@hsandt)
15+
* PR #902 VS fix for projects with multiple manifest files (@Blizzard)
16+
* PR #913 Fix subtle bug in table.translate (@Blizzard)
17+
* PR #919 Add perfile flags test for gmake backend. (@Blizzard)
18+
* PR #920 small fix in self-test module. (@Blizzard)
19+
* PR #921 Compiler warnings (@Blizzard)
20+
* PR #922 gmake2 bug fix. When generating gmake file with pch headers (@Blizzard)
21+
* PR #923 Add Visual Studio ARM64 support. (@Blizzard)
22+
* PR #926 Fixes translateCommandsAndPaths, and debugargs. (@Blizzard)
23+
* PR #927 bug fix for recursive token expansion (@Blizzard)
24+
* PR #928 sometimes due to ordering of test, we're in a rule scope. (@Blizzard)
25+
* PR #931 Added synchronous and C-Throw to VS projects. (@CreativeAssembly)
26+
* PR #932 Added extra information for Windows platform when copyfile fails. (@pjohalloran)
27+
* PR #938 Added `staticruntime` API. (#163) (@premake)
28+
* PR #939 Resolve the rule properties for gmake (#162) (@premake)
29+
* PR #941 Fix makefile PCH tab problem (@premake)
30+
* PR #944 C++0x dialect support (@premake)
31+
* PR #945 Natvis files have an item group. (@premake)
32+
* PR #948 Fixed a bug in gmake2 with clang and pch. (@Gereld)
33+
* PR #949 Added DPI awareness support to VS2010+ projects (@LORgames)
34+
* PR #950 Added defaultplatform support to gmake and gmake2 actions (@LORgames)
35+
* PR #952 Add support for `targetextension` in xcode4 (@tempura-sukiyaki)
36+
* PR #957 fix gmake2 utility (@Blizzard)
37+
* PR #958 fix context.addFilter (@Blizzard)
38+
* PR #959 Multiple gmake2 fixes (@Blizzard)
39+
* PR #960 Improve determinism in sln output. (@Blizzard)
40+
* PR #961 add 64-bit support on windows (@Blizzard)
41+
* PR #962 fix table.insertkeyed (@Blizzard)
42+
* PR #964 Add support for wildcards in mapconfig. (@Blizzard)
43+
* PR #965 Move part of the workspace baking up (@premake)
44+
* PR #966 utility projects also allow configuration of the executable path. (@Blizzard)
45+
* PR #967 return generated fileconfig. (@Blizzard)
46+
* PR #969 Fix buildoutput pathvars (@Blizzard)
47+
* PR #970 Table fix indexof (@Blizzard)
48+
* PR #979 Define _HAS_EXCEPTIONS=0 from vs2010 for exceptionhandling off (@tdesveauxPKFX)
49+
* PR #980 src/base and modules: change links to industriousone.com to working HTTPS github links (@catb0t)
50+
* PR #988 Fixed a bug with normalizing paths that contain dot folders (@LORgames)
51+
* PR #990 Extended Instructions sets (@tdesveauxPKFX)
52+
* PR #993 Fix /usr/lib64 being used as search dir before project's libdir (@alexandre-janniaux)
53+
* PR #994 added a 'latest' systemversion for vs2017 (@dcourtois)
54+
* PR #1005 Fix gmake dependencies (@premake)
55+
* PR #1011 Fixes an issue with custom rules tracking files. (@Dandielo)
56+
* PR #1018 Added release info badges to the readme (@LORgames)
57+
* PR #1019 Remove git submodule commands (@Passw)
58+
* PR #1020 Embed luasocket, add mobdebug and --debugger command line option (@redorav)
59+
* PR #1021 Clear additional global state between unit test runs (@starkos)
60+
* PR #1023 Include library directories in Codelite projects (@Gaztin)
61+
* PR #1029 Replace last global state block in api.reset (@starkos)
62+
* PR #1030 Fix vstudio symbolspath (@tdesveauxPKFX)
63+
* PR #1031 Fix gmake2 Makefile projects callArray (@tdesveauxPKFX)
64+
* PR #1033 vstudio staticlib symbolspath (@tdesveauxPKFX)
65+
* PR #1034 Add 'modules/android/' from premake-android (@LORgames)
66+
* PR #1037 HLSL Shader compilation in Visual Studio (@tdesveauxPKFX)
67+
* PR #1040 Get 'compileas' working when using a 'filter "files: ..."' scope. (@ratzlaff)
68+
* PR #1041 Fleshed out CI builds (@LORgames)
69+
* PR #1042 Add UnsignedChar API (@tdesveauxPKFX)
70+
* PR #1043 Add omitframepointer API (@tdesveauxPKFX)
71+
* PR #1044 Add Visibility API for gcc/clang toolsets (@tdesveauxPKFX)
72+
* PR #1045 Add debuggerflavor API (@tdesveauxPKFX)
73+
* PR #1046 Add structmemberalign API (@tdesveauxPKFX)
74+
* PR #1048 Add conditional behavior to global variables, add systemversion as first implementation (@redorav)
75+
* PR #1049 Add InlinesVisibility API (@tdesveauxPKFX)
76+
* PR #1053 Fixed issue with floatingpoint "Strict" causing errors in XCode (@LORgames)
77+
* PR #1062 Allow system("android") per configuration (@redorav)
78+
* PR #1064 Tiny gcc fix from PR #506. (@tvandijck)
79+
* PR #1065 Fixes a few luasocket compile warnings. (@tvandijck)
80+
* PR #1066 fix a few compiler warnings. (@tvandijck)
81+
* PR #1068 Fix constructing executable path from argv[0] (@lanurmi)
82+
* PR #1069 Support successfully bootstrapping on Solaris (OpenIndiana). (@lanurmi)
83+
* PR #1070 Support successfully bootstrapping on OpenBSD. (@lanurmi)
84+
* PR #1075 Fixed bug with alias tests that caused one to three extra tests to be run (@LORgames)
85+
* PR #1077 Do not output colors e.g. into a pipe, unless forced. (@lanurmi)
86+
* PR #1078 Added GoogleTest style output for unit tests (@LORgames)
87+
* PR #1080 Fix curl compilation on Debian PowerPC. (@lanurmi)
88+
* PR #1081 cache results of shouldUseColors() (@tvandijck)
89+
* PR #1084 Fix httpbin useragent response format. (@SchmidtD)
90+
* PR #1087 Fix missing DebugInformationFormat when symbols are set to full (@rorydriscoll)
91+
* PR #1089 Import paths weren't translated properly (@TurkeyMan)
92+
* PR #1092 CodeLite workspace folders (groups) (@Gaztin)
93+
* PR #1093 Implemented 'debugenvs' for CodeLite (@Gaztin)
94+
* PR #1096 gmake2: Fix dependency for pch (@tdesveauxPKFX)
95+
* PR #1098 Prevent D module from adding D block in unrelated projects (@tdesveauxPKFX)
96+
* PR #1100 gmake2: Remove pch from FORCE_INCLUDE to allow NoPCH per-file (@tdesveauxPKFX)
97+
* PR #1103 gmake*: fix shell type identification (@tdesveauxPKFX)
98+
* PR #1104 Xcode Fixes (@erincatto)
99+
* PR #1105 gmake: Add rules and dependencies for directory creation (@tdesveauxPKFX)
100+
* PR #1107 Only set WindowsSDKDesktopARMSupport for windows systems (#172) (@Blizzard)
101+
* PR #1108 Fix gmake2 (@Blizzard)
102+
* PR #1113 Support buildaction for C++ projects (@Blizzard)
103+
* PR #1115 Remove Xbox 360 code from core to move and expand onto a standalone module (@redorav)
104+
* PR #1117 Fix Xcode autocompletion with excluded files (@sp-jordi-vilalta)
105+
* PR #1118 gmake2: fix cpp perfileflags (@tdesveauxPKFX)
106+
* PR #1125 Swap order of applying project specific config (@Blizzard)
107+
* PR #1126 vpath android.link fix (@Blizzard)
108+
* PR #1132 Refactor path.normalize and handle path ending with . (@tdesveauxPKFX)
109+
* PR #1136 Support server paths (@Gaztin)
110+
* PR #1137 Fix gmake multiple-output rule issue. (@Blizzard)
111+
* PR #1142 Support for CSDialect (@Blizzard)
112+
* PR #1143 Fix `targetextension` in xcode4 (@tempura-sukiyaki)
113+
* PR #1144 Add `sharedlibtype` in xcode4 (@tempura-sukiyaki)
114+
* PR #1145 Add support `kind:Utility` in xcode4 (@tempura-sukiyaki)
115+
* PR #1161 Add `xcodesystemcapabilities` in xcode4 (@tempura-sukiyaki)
116+
* PR #1164 ! fixed pepper fish to work with lua 5.3.4 (@neo2buha)
117+
* PR #1167 Add support for per-file custom build commands in xcode4 (@tempura-sukiyaki)
118+
* PR #1176 path.normalize: Fix when call with path surrounded with quotes (@tdesveauxPKFX)
119+
8120
Since 5.0-alpha11:
9121

10122
* PR #617 fix switch/separator in rules_xml (@Blizzard)

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# PREMAKE 5 (core)
22
<img src="https://github.com/premake/premake-core/wiki/linux-widget.jpeg" width="24" height="24"/> [![Build Status](https://travis-ci.org/premake/premake-core.svg?branch=master)](https://travis-ci.org/premake/premake-core)
33
<img src="https://github.com/premake/premake-core/wiki/windows-widget.jpeg" width="24" height="24"/> [![Build status](https://ci.appveyor.com/api/projects/status/lc9g332y2lqvel8h?svg=true)](https://ci.appveyor.com/project/PremakeOrganization/premake-core)
4+
[![Latest release](https://img.shields.io/github/release/premake/premake-core/all.svg)]()
5+
[![Release date of last release](https://img.shields.io/github/release-date-pre/premake/premake-core.svg)]()
6+
[![Commits since last release](https://img.shields.io/github/commits-since/premake/premake-core/v5.0.0-alpha12.svg)]()
47

58
<img src="http://premake.github.io/premake-logo.png" width="200" height="200" />
69

appveyor.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ os: Visual Studio 2015
22

33
platform:
44
- Win32
5+
- x64
6+
7+
configuration:
8+
- Debug
9+
- Release
510

611
before_build:
712
- cmd: git clean -ffxd
8-
- cmd: git submodule sync
9-
- cmd: git submodule update --init
1013

1114
build_script:
1215
- cmd: call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"
13-
- cmd: nmake -f Bootstrap.mak MSDEV=vs2015 windows
16+
- cmd: nmake -f Bootstrap.mak MSDEV=vs2015 windows PLATFORM=%PLATFORM% CONFIG=%CONFIGURATION%
1417

1518
test_script:
16-
- cmd: bin\release\premake5 test
19+
- cmd: bin\%CONFIGURATION%\premake5 test

binmodules/example/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <luashim.h>
1+
#include "luashim.h"
22

33

44
static int example_test(lua_State* L)

binmodules/luasocket/.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*.o
2+
*.so
3+
*.so.*
4+
*.obj
5+
*.lib
6+
*.dll*
7+
*.user
8+
*.sdf
9+
Lua.props
10+
Debug
11+
Release
12+
*.manifest
13+
*.swp
14+
*.suo
15+
x64
16+

binmodules/luasocket/.travis.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
language: erlang
2+
3+
env:
4+
global:
5+
- LUAROCKS_BASE=luarocks-2.0.13
6+
matrix:
7+
- LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
8+
- LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
9+
- LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
10+
11+
branches:
12+
only:
13+
- master
14+
15+
before_install:
16+
- if [ $LUA = "luajit" ]; then
17+
sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y;
18+
fi
19+
- sudo apt-get install $LUA
20+
- sudo apt-get install $LUA_DEV
21+
- lua$LUA_SFX -v
22+
# Install a recent luarocks release
23+
- wget http://luarocks.org/releases/$LUAROCKS_BASE.tar.gz
24+
- tar zxvpf $LUAROCKS_BASE.tar.gz
25+
- cd $LUAROCKS_BASE
26+
- ./configure
27+
--lua-version=$LUA_VER --lua-suffix=$LUA_SFX --with-lua-include="$LUA_INCDIR"
28+
- sudo make
29+
- sudo make install
30+
- cd $TRAVIS_BUILD_DIR
31+
32+
33+
install:
34+
- export DEBUG=DEBUG
35+
- sudo -E luarocks make luasocket-scm-0.rockspec
36+
37+
script:
38+
- cd test
39+
- lua$LUA_SFX hello.lua
40+
- lua$LUA_SFX testsrvr.lua > /dev/null &
41+
- lua$LUA_SFX testclnt.lua
42+
- lua$LUA_SFX stufftest.lua
43+
- lua$LUA_SFX excepttest.lua
44+
- lua$LUA_SFX test_bind.lua
45+
- lua$LUA_SFX test_getaddrinfo.lua
46+
- lua$LUA_SFX ltn12test.lua
47+
- lua$LUA_SFX mimetest.lua
48+
- lua$LUA_SFX urltest.lua
49+
- lua$LUA_SFX test_socket_error.lua
50+
51+
notifications:
52+
email:
53+
on_success: change
54+
on_failure: always

binmodules/luasocket/FIX

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
3+
4+
5+
6+
7+
http was preserving old host header during redirects
8+
fix smtp.send hang on source error
9+
add create field to FTP and SMTP and fix HTTP ugliness
10+
clean timeout argument to open functions in SMTP, HTTP and FTP
11+
eliminate globals from namespaces created by module().
12+
url.absolute was not working when base_url was already parsed
13+
http.request was redirecting even when the location header was empty
14+
tcp{client}:shutdown() was checking for group instead of class.
15+
tcp{client}:send() now returns i+sent-1...
16+
get rid of a = socket.try() in the manual, except for protected cases. replace it with assert.
17+
get rid of "base." kludge in package.loaded
18+
check all "require("http")" etc in the manual.
19+
make sure sock_gethostname.* only return success if the hp is not null!
20+
change 'l' prefix in C libraries to 'c' to avoid clash with LHF libraries
21+
don't forget the declarations in luasocket.h and mime.h!!!
22+
setpeername was using udp{unconnected}
23+
fixed a bug in http.lua that caused some requests to fail (Florian Berger)
24+
fixed a bug in select.c that prevented sockets with descriptor 0 from working (Renato Maia)
25+
fixed a "bug" that caused dns.toip to crash under uLinux
26+
fixed a "bug" that caused a crash in gethostbyname under VMS
27+
DEBUG and VERSION became _DEBUG and _VERSION
28+
send returns the right value if input is "". Alexander Marinov

0 commit comments

Comments
 (0)