starkos
3663909c35
Merge pull request #43 from Blizzard/contrib-libs
...
adding contrib libs (curl, zlib and libzip)
2015-07-12 16:51:24 -04:00
Jason Perkins
6a66587079
Fix preloading of embedded modules
...
os.locate() wasn't able to find the embedded scripts; added an explicit check after scanning the file system
2015-06-25 14:18:14 -04:00
Jason Perkins
5d98731c65
Add optional versions
argument to require()
2015-06-22 15:35:20 -04:00
Tim Wharton
42b3ca2c51
Add bootstrap Makefile create premake initial executable
...
On a fresh clone, Bootstrap.mak can be used to prepare the initial premake executable on Windows, OSX and Linux.
2015-06-11 19:26:59 +01:00
grbd
6202fe473a
http api changes
2015-04-14 17:54:03 -07:00
tdijck
4723ca7ac8
add os.writefile_ifnotequal
2015-04-06 16:29:14 -07:00
Jason Perkins
0a9754eff7
Merge branch 'pr1' of https://github.com/Blizzard/premake-core
2015-04-04 11:13:45 -04:00
Jason Perkins
bd51df5d85
WE'VE MOVED TO GITHUB! Come join us at https://github.com/premake/premake-core
...
If you need help moving a private Mercurial fork of Premake to git, see https://github.com/premake/premake-core/wiki/Migrating-From-BitBucket
2015-04-02 16:31:57 -04:00
tdijck
a8087f4b8f
add string.sha1 function
2015-03-31 11:48:49 -07:00
Jason Perkins
fd11fd3f60
Updated embedded copyright year
2015-02-23 17:11:27 -05:00
Jason Perkins
e78cf3f61d
Use a more restricted set of search paths when loading the core and bootstrap scripts
2015-02-15 14:30:17 -05:00
Jason Perkins
78678a193d
Restore more of the script search locations
2015-02-04 18:56:45 -05:00
Jason Perkins
2e76782abc
Move initialization of _USER_HOME_DIR to host
2015-02-04 18:39:02 -05:00
Jason Perkins
c936229eac
Restore PREMAKE_PATH searching
2015-02-03 19:52:05 -05:00
Jason Perkins
1bd13569b9
Populate new global premake.path with search path; use in script loader
...
I've only implemented searching on the --scripts path with this commit; more paths coming in next commits.
2015-02-03 19:25:30 -05:00
Jason Perkins
cca1ea6643
Move premake namespace creation into host
2015-02-03 16:14:52 -05:00
Jason Perkins
e2d8acf864
Allow main script name to be overridden in premake_execute()
2014-12-22 11:50:26 -05:00
Jason Perkins
cfccb8fa61
Correctly report syntax errors in loaded scripts
...
Syntax errors were getting reported as "file not found" errors instead. Correctly pass through the right error code and message.
2014-11-11 15:33:36 -05:00
Jason Perkins
aaa3052db4
Convert --scripts argument to absolute path on startup
2014-10-16 19:09:14 -04:00
Jason Perkins
a0ab11bda6
Rework --scripts handling to allow module loading
...
The --scripts argument should not point to the top-level Premake folder rather than its src/ folder; this allows the modules/ folder to also be referenced along that same path.
2014-10-16 17:32:09 -04:00
Jason Perkins
67f6fba149
Merge new script embedding system
2014-10-04 19:10:21 -04:00
Jason Perkins
3e4975af1b
Enable relative referencing of embedded scripts
2014-10-04 18:02:20 -04:00
Jason Perkins
e2c1f5c430
Add more module and script search paths
...
Now uses same set of paths to locate both modules and individual scripts, in order:
- the main script dir (_MAIN_SCRIPT_DIR)
- the current working directory
- ~/.premake
- the --scripts=… argument, if present
- the PREMAKE_PATH environment variable, if set
- the folder containing the Premake executable (_PREMAKE_DIR)
- ~/Library/Application Support/Premake
- /usr/local/share/premake
- /usr/share/premake
Prints a warning when embedded scripts are loaded from a debug build
2014-09-29 18:00:52 -04:00
Jason Perkins
90ae7aaa70
Rework embedded scripts to be loaded on-demand and by name
...
This will be required in order to migrate modules into the executable for binary releases
2014-09-26 09:25:14 -04:00
Jason Perkins
287c592733
Fix _WORKING_DIR global broken by commit 3da877fd5473
2014-09-02 15:41:02 -04:00
Jason Perkins
8fe9c55a15
Added os.islink() — does path point to a symbolic link or reparse point?
2014-05-28 15:08:54 -04:00
Jason Perkins
7c8acae626
Add os.realpath() to resolve symbolic links on Posix systems
2014-05-23 18:37:15 -04:00
Jason Perkins
87ebf6ee6a
Update embedded project information
2014-05-14 17:43:08 -04:00
Jason Perkins
e588886bb8
Added os.chmod() (h/t Richard Geary)
2014-05-14 17:32:56 -04:00
Jason Perkins
b722cfef29
New flag --interactive opens a REPL prompt with project loaded (h/t Richard Geary)
2014-05-13 19:17:50 -04:00
Jason Perkins
f4e55da621
Added new filter() to replace configuration(), with required field prefixes
...
- use like: filter { "configurations:Debug" }
- supported prefixes: action, architecture, configurations, files, kind, language, options, platforms, system
- defaults to "configurations" if no prefix is specified
2014-04-25 11:53:01 -04:00
Jason Perkins
e3b03debfb
Make _SCRIPT global available during debug manifest loading
2014-04-03 14:57:40 -04:00
Jason Perkins
0f713d5c39
Move criteria.matches() to C to gain back some performance lost to filter prefixes
2014-04-08 15:07:09 -04:00
Jason Perkins
9e30be2197
Move action and argument processing to scripts
2014-02-26 15:47:33 -05:00
Jason Perkins
2422a54f6a
Move command line option processing to scripts
2014-02-26 15:36:11 -05:00
Oliver Schneider
5c15e8791a
Removing the execute bit on these source files, no line changes of any kind, though.
2014-02-05 00:43:21 +00:00
Jason Perkins
1bbefc56aa
Move path.normalize() to native code for performance
2013-12-22 14:14:31 -05:00
Jason Perkins
1f126d1855
Bug: ignores first command line argument after the action
2013-12-01 15:38:28 -05:00
Jason Perkins
2774e7796a
Port string.startswith() to native code
2013-11-26 19:10:53 -05:00
Jason Perkins
6dc52d2e08
Improve command line argument processing
...
- allow options to appear after the action
- export "raw" arguments to new _ARGV variable
2013-11-22 13:11:51 -05:00
Jason Perkins
6cb3034234
Fix misplaced variable declaration
2013-11-10 16:19:25 -05:00
Jason Perkins
071e74f0ae
Move setting of _PREMAKE_COMMAND into premake_execute() for reuse
2013-11-05 11:50:59 -05:00
Jason Perkins
3df3a7fb8e
Fix VC 2010 compiler warning
2013-09-11 10:57:25 -04:00
Jason Perkins
6a04a82123
Fix error handling in debug builds
2013-09-10 17:19:30 -04:00
Jason Perkins
d77a856629
Move manifest loading to host executable
2013-09-10 16:47:41 -04:00
Jason Perkins
985c58103c
Make the version change from 4.x to 5.x official
...
- Rename executable to premake5
- Default to premake5.lua project script; fallback to premake4.lua if not found
- Clean up internal references to premake4 naming
2013-09-10 16:24:39 -04:00
Jason Perkins
4bb62af458
Make option lowercasing C89 compliant
2013-09-09 13:53:10 -04:00
Jason Perkins
11b4f4177b
Force command line option keys to lowercase to allow mixed case from users
2013-09-08 11:49:37 -04:00
Jason Perkins
d8308eb454
Allow API functions to be flagged as deprecated
2013-04-09 10:11:27 -04:00
Jason Perkins
a69b7501e7
Port path.getrelative() and path.translate() from Lua to C
2013-01-04 11:32:52 -05:00