Calvin Rose
9dd152dc28
Add features.h for feature test macros.
...
Because we use an amalgated build, feature
test macros should be set in a single file that
is included before any other headers, and is placed
at the top of the amalgamated build.
2019-12-30 19:06:15 -05:00
Calvin Rose
31f8778aa3
Fix makensis invocation.
2019-12-19 13:46:59 -05:00
Calvin Rose
0ecd74d01d
Echo calculated version.
2019-12-19 13:45:38 -05:00
Calvin Rose
bd20b16a32
Capture typo.
2019-12-19 13:28:17 -05:00
Calvin Rose
933f4b9111
build_win.bat: Parse out smv of janet/version.
2019-12-19 13:25:45 -05:00
Calvin Rose
3492ed6d88
Windows installer pulls version from interpreter.
...
This should make version updates simpler. Also
try an make installer write to ProgramFiles instead
of ProgramFiles (x86) for 64 bit build.
2019-12-19 13:18:46 -05:00
Calvin Rose
c9292ef648
Use /MD on windows.
...
Just makes things easier. Assume machines have msvcrt.dll
on them. If not, we can add msvcrt.dll to the dist folder and add to
installer.
2019-11-09 16:05:07 -05:00
Calvin Rose
05e3fd3cc6
Fix build_win.
2019-11-09 13:22:07 -05:00
Calvin Rose
6f1b03b67e
Fix build_win test-install.
...
On failure, cd back to original directory.
2019-11-09 11:28:40 -05:00
Calvin Rose
8911daaf6c
Add --test flag to jpm.
...
Also test some select packages when testing installation.
This is used in CI to make sure that versions of Janet work with
the most libraries.
2019-11-09 10:03:56 -06:00
Calvin Rose
25a9804d91
Fix build_win test-install
2019-10-29 20:40:09 -05:00
Calvin Rose
cf19cd5292
Add the quickbin command to jpm.
...
This is useful for making one off executable scripts
without needing to set up a project.janet file.
2019-10-29 20:33:18 -05:00
Calvin Rose
280dca3998
Add shell.c to the amalgamation.
...
This allows easy builds of the full interpreter with no
build system.
1. Get janet.c, janet.h, janetconf.h, and shell.c in a directory. Edit
janetconf.h as desired.
2. gcc shell.c janet.c -lm -ldl -O2 -o janet (on GNU-Linux for example)
3. ./janet -h (Yay!)
2019-10-29 19:18:44 -05:00
Calvin Rose
0d16b9e1a1
Move init.janet into cli-main in boot.janet
...
This makes it easier to get the CLI functionality when
embedding Janet, although the main reason is the init script
is now pre-compiled to bytecode when generating the boot image.
2019-10-29 18:16:32 -05:00
Calvin Rose
e6306ea188
Add script for removing <CR> on windows.
...
This caused bad stuff to be generated on windows, specifically
the amalg file. We cause totally strip <CR> from files on windows
using this script.
2019-09-12 23:18:52 -05:00
Calvin Rose
05695a35c7
Fix test-install after removing cook.
2019-08-28 21:05:34 -05:00
Calvin Rose
58ffb9d7a5
Remove cook and path from default install
...
Instead, combine cook into jpm so we can manipulate
JANET_PATH without messing with jpm. path was moved to
and external repository, https://github.com/janet-lang/path.git
2019-08-28 20:54:31 -05:00
Calvin Rose
0360942942
Add build commit hash to windows build from appveyor.
2019-08-18 21:01:47 -04:00
Calvin Rose
ec32d11b76
Update installer and make things build on windows.
...
We can now build windows executables with jpm.
2019-07-28 01:05:15 -04:00
Calvin Rose
7e97687c9e
Update windows installation and automation.
2019-07-27 21:44:44 -04:00
Calvin Rose
da5a64131f
Progress towards making windows work again.
2019-07-27 16:16:28 -04:00
Calvin Rose
bedd9ccaa1
Verify working meson build on windows.
...
Using MSVC, no need for GNU tools.
2019-06-20 17:28:22 -04:00
Calvin Rose
3d76d988c3
More work on installation and moving files around.
...
Move all installed libraries into auxlib.
Move all installed executable scripts into auxbin.
2019-06-01 10:38:28 -04:00
Calvin Rose
db55277b58
Work on windows installer.
...
We will probably shift to NSIS as the default
installation method for windows. Shipping around a
single binary just doesn't cut it if we want to be able
to reliably use tools like `jpm` to build things.
2019-05-28 20:45:39 -04:00
Calvin Rose
1696de233c
Add jpm tool, based on cook.
...
Modify cook as well.
2019-05-27 16:50:57 -04:00
Calvin Rose
6c63c4f129
Disable faulty embed test.
...
This needs more work on windows. However, the initial
goal of fixing the amalgamated build on windows should be ok
for now.
2019-05-23 20:32:51 -04:00
Calvin Rose
3be79e8735
Link freebsd build.
...
Also begin work on CI amalg test for windows.
2019-05-23 11:15:58 -04:00
Calvin Rose
10769f6f2e
Appveyor build issues
...
Revert some externeous changes in build_win.bat to
see what happens.
2019-03-24 15:04:47 -04:00
Calvin Rose
e2337b2ec4
Update build_win.bat to handle new amalg script.
2019-03-23 19:59:54 -04:00
Calvin Rose
98758b68ab
Boot executable invocation has changed.
2019-03-22 18:37:46 -04:00
Calvin Rose
7f1b5d4d70
Merge core.janet into boot.janet
...
This simplifies the build machinery a bit.
core.janet is never actually included in the final
binary, it is just used to generate an image file.
2019-03-22 18:34:50 -04:00
Calvin Rose
25aa7a26c5
Add experimental meson build.
...
Should help with IDE integration.
2019-03-22 18:07:10 -04:00
Calvin Rose
b61c9eb991
Update build script for windows.
2019-02-18 20:15:20 -05:00
Calvin Rose
ed72dcf82d
Rename the header <janet/janet.h> to <janet.h>
...
Makes it easier to use and remember, and makes the
variable `module/*headerpath*` make more sense.
2019-02-18 20:13:35 -05:00
Calvin Rose
540b326c54
Simpler way to set JANET_PATH at compile time.
2019-02-18 14:48:29 -05:00
Calvin Rose
9ff819a4a1
Fix build_win.bat
2019-02-08 15:02:36 -05:00
Calvin Rose
b61d1a0a0e
Try to update windows build for core image.
2019-02-08 13:37:14 -05:00
Fyodor Shchukin
a7551e9b4e
Cooking on windows
2019-01-30 17:31:53 +03:00
Calvin Rose
ee5fa54134
Generated files go to the same location on win32.
2019-01-26 17:33:30 -05:00
Calvin Rose
8ee2f0a1d6
Add amalgamation to windows distribution
2019-01-24 10:19:48 -05:00
Calvin Rose
017ee2b0d1
Move gendoc.janet script.
2018-12-25 17:37:52 -05:00
Calvin Rose
9723ddb96b
Fix string/number issue.
2018-12-22 16:24:08 -05:00
Calvin Rose
ac9935c95f
Add documentation to generated distribution
...
archive.
2018-12-17 22:48:37 -05:00
Calvin Rose
24b9ae7820
Add doc files to distribution archives.
2018-12-15 15:42:27 -05:00
Calvin Rose
fb6dd2c83f
Add debug functions to janet.h
...
Update version to 0.2.0 for next release.
Fix whitespace in build_win.bat
2018-12-15 13:52:07 -05:00
Calvin Rose
21d4b8fe1f
Move tools out of src (src should be
...
only code that goes into final binary).
2018-12-09 17:49:00 -05:00
Calvin Rose
64d842d2ef
Update build script, remove windows build issues.
2018-12-08 17:40:05 -05:00
Calvin Rose
bd7157586b
Oops
2018-12-08 17:26:07 -05:00
Calvin Rose
3b94adc7f3
No .exp!
2018-12-08 17:15:17 -05:00
Calvin Rose
4bcbf65b5b
Update appveyor and windows build_win script.
2018-12-08 17:10:46 -05:00