Tom van Dijck
7b9ff9f840
Update to Lua 5.3.4
2017-06-19 12:11:49 -07:00
Tom van Dijck
6841eb1752
[core] Allow filters to be written as:
...
```lua
filter {
files = { "**.c" },
system = "windows"
}
```
2017-06-13 08:39:47 -07:00
Renaud Guillard
38bbf60993
test: disable os.findheader() on windows
2017-05-13 23:01:25 +02:00
Renaud Guillard
9eba1e7fb6
add os.findheader()
2017-05-06 00:00:51 +02:00
Tom van Dijck
f1d461f3a5
Add test for multiple tokens.
2017-05-02 09:09:38 -07:00
R. Blaine Whittle
bce3f2c4ed
[core] new cmd path decorations with %[] syntax
...
this is for marking cmd options as paths relative to the
projects base dir. decorated paths can use tokens / macros
decorated paths are wrapped with "". Final slashes are
honored. Slashes are platform specific.
Note that the working dir for custom cmd is undefined as
the current working dir will be different between xcode (wks.location)
and visual studio / make (prj.location.) Changing the CWD isn't
a good default behavior (for reasons.) This leads to prior
use of premake requiring alot of string concating / function calls
for path translations which make the cmd line difficult to read and maintain.
With path decorations, one can just make those relative paths with %[]
and everything should work.
2017-05-01 12:18:52 -07:00
Sam Surtees
b251234b27
Cleaned up inconsistencies in whitespace
2017-04-26 03:40:43 +10:00
Sam Surtees
fa3328440e
Increased consistency of p. usage
2017-04-25 16:41:30 +10:00
Tom van Dijck
b3ad14a51c
current -> host.
2017-04-24 13:01:31 -07:00
Tom van Dijck
5f589ad5a6
replaced:
...
os.get() -> os.target()
os.is() -> os.istarget()
_OS -> _TARGET_OS
added:
os.current()
os.iscurrent()
2017-04-24 13:01:31 -07:00
Sam Surtees
537392428d
os.translateCommands now supports multiple tokens
2017-04-20 02:05:39 +10:00
Aleksi Juvani
479d51af81
Add JSON API ( #729 )
...
* Add JSON API
2017-04-04 09:02:59 -07:00
Jusonex
b2ec8b1b9a
Use Schannel instead of mbedtls on Windows to avoid bundling CA certs
...
Also added a test that fails on the previous commit
2017-03-08 22:48:40 +01:00
Nikola Sprljan
d80e174774
Replaced Windows registry locations with the ones that should exist for all users, including the System one. This is to support running of unit tests in CI environments. ( #697 )
2017-02-21 09:16:22 -08:00
Tom van Dijck
0a7b45ce17
bring os.getversion() on par with the present ( #688 )
...
* bring os.getversion() on par with the present
* Use non-deprecated API's for Windows.
* Use Apple official names for MacOSX.
2017-02-01 09:19:13 -08:00
Tom van Dijck
9336b1d9df
rename os_getreg to os_getWindowsRegistry
2017-01-30 09:29:01 -08:00
Justin O'Dell
7bad45325f
Windows Registry
...
- Added a new os command `getreg` which takes a registry path and returns the value or nil
2016-12-28 07:43:54 -08:00
Sam Surtees
ac88483ccc
Added a test dot file instead of relying on .gitignore to be shipped
...
Fixes #595
2016-11-03 21:22:42 +10:00
Sam Surtees
c6af364311
Fixed bug where path.normalize was being overzealous with removing instances of ".." breaking paths. Fixes #579
2016-09-21 01:40:27 +10:00
Tom van Dijck
72e30c9fd8
Merge pull request #546 from Blizzard/update-curl-mbedtls
...
Update curl and use mbedtls instead of openssl.
2016-08-31 17:25:09 -07:00
Tom van Dijck
f56f713b99
Add tests for http.get
2016-08-30 12:06:06 -07:00
Nils Moehrle
8e37cac91b
Only normalize paths within os.execute (c.f. #320 akaStiX/premake-core@369c5ab )
2016-08-25 16:46:22 +02:00
Tom van Dijck
d2580bab86
Adding some tests.
2016-08-22 16:06:55 -07:00
Tom van Dijck
2e8a26df5c
Fix usage of bit32.arshift
...
added unit-test
2016-06-09 18:12:06 -07:00
Jason Perkins
e0e988eccb
Move testing framework into a core module
2016-05-16 16:32:35 -04:00
Jason Perkins
e6bfd500b0
Catch older unit tests up to the latest standards
2016-05-12 19:56:04 -04:00
Eyal Solnik
9d068901f9
Fix replaceextension from adding a leading dot
...
When an empty string was passed to replaceextension
as the new extension, it added a leading dot,
this update fixes/prevents it.
2016-03-29 20:15:19 +03:00
Eyal Solnik
82fd64e00c
Fix getextension to handle paths w/ dot correctly
2016-03-29 10:02:49 +03:00
Jason Perkins
dbb42a0b77
Merge pull request #307 from LORgames/ssurtees/translatePathFix
...
Modify `path.translate()` to use target OS path separator by default
2016-03-17 12:13:55 -04:00
Jason Perkins
5c3f2b8835
Some environments and toolsets allow additional characters within $(...) tokens. Adding the dot "."
2016-03-07 16:38:50 -05:00
Sam Surtees
d382228ceb
Converted premake-core tests over to use premake.action.set() instead of _ACTION
2016-02-06 13:35:54 +10:00
Sam Surtees
f60a1b391f
path.translate now uses the target OS separator by default instead of Windows separator.
2016-02-06 13:35:03 +10:00
Tom van Dijck
d387209ed4
fix "do_isabsolute", and add more tests.
2016-02-05 13:15:01 -08:00
Jason Perkins
ef5ac384cf
Add support for DOS-style environment variables, e.g. %JAVA_HOME%
2016-01-20 14:06:38 -05:00
Tom van Dijck
c9dd90f4b7
Merge pull request #370 from Blizzard/detoken-explicit-absolute
...
Allow the pathVars to return a table that specifies explicitly that a token represents a relative or absolute path.
2016-01-14 13:23:53 -08:00
Tom van Dijck
535e40db5f
Allow the pathVars to return a table that specifies explicitly that a token represents a relative or absolute path.
2015-12-17 16:13:35 -08:00
Tom van Dijck
9f7ebdced2
make "premake.checkVersion" use Semantic Versioning
...
http://semver.org/
2015-12-17 10:55:43 -08:00
starkos
847fc633ac
Merge pull request #242 from Blizzard/fix-path-join
...
Recognize more situations where '..' should not be trimmed.
2015-09-16 18:40:49 -04:00
James Touton
d26944a64e
Added tests for complex joins with .. components.
2015-09-05 17:40:50 -07:00
Jason Perkins
aa88ddab96
Rename "MySolution" to "MyWorkspace" across tests
2015-09-03 18:03:39 -04:00
Jason Perkins
c3d2e226a3
Rename solution to workspace in test suites
2015-09-03 18:03:39 -04:00
starkos
aeca0bb3fd
Merge pull request #228 from LORgames/ssurtees/multipleWorkspacesFix
...
Fixed a bug when including (includeexternal) the same project in multiple workspaces
2015-08-30 11:11:16 -04:00
starkos
ba3e30f510
Merge pull request #234 from starkos/more-workspace-renames
...
More workspace renames
2015-08-30 11:10:34 -04:00
Sam Surtees
23d2c04e2b
Fixed a bug when including the same project in multiple workspaces, when using the includeexternal API. Based on discussion in #122
2015-08-30 22:17:00 +10:00
starkos
d2290fc742
Merge pull request #231 from LORgames/ssurtees/windowsCopyFix
...
Windows copy function no longer uses /E when used on a file
2015-08-28 16:19:24 -04:00
Jason Perkins
14525e8161
Changes names in core test suites
2015-08-28 16:16:14 -04:00
Sam Surtees
773aecbee7
Added test case to ensure the functionality isn't broken in the future.
2015-08-27 22:35:04 +10:00
Sam Surtees
0f3972c914
Windows copy function no longer uses /E when used on a file
...
* Added some basic tests to ensure combinations work
* Fixes : #124
2015-08-27 20:44:14 +10:00
Jason Perkins
072b47eb56
Added unit test for new search ability
2015-08-23 14:53:56 -04:00
StiX
16dded0499
Fixed path.normalize
2015-08-12 00:21:23 +02:00