Commit Graph

97 Commits

Author SHA1 Message Date
Thomas A
03db084961 Abstract Architecture Detection/Assignment
The main goal of this commit is to make it more easy to add or update any architecture we want to support (such as ARM64). Any changes we want to make would be done in the architectures.cmake file.

The secondary goal of this commit is to encourage a more architecture generic nomenclature. We shouldn't use i368/x86_64 unless we are dealing with code that is specific to those architectures.
2020-09-27 18:54:06 -07:00
Ariel Abreu
ef2d9c7622
Shut up a repeated warning (-Wavailability)
It happens because non-Apple clang doesn't understand the iosmac, bridgeos, and a few other newer Apple platforms, and it complains about it
2020-08-31 16:31:10 -04:00
Ariel Abreu
e9ca7e9f71
Update gnutar
It's now locked behind an option called ADDITIONAL_PACKAGES, because it's not included by default in a standard macOS install
2020-08-02 17:53:57 -04:00
Ariel Abreu
802a0a9884
Use a whole version for the macOS system version
It's probably less problematic
2020-06-29 14:36:50 -04:00
Ariel Abreu
938e7e3446
Prevent object filename conflicts for two source files that differ only in extensions 2020-06-07 18:58:40 -04:00
Ariel Abreu
835c2ca0bd
Set macOS deployment version
This helps clang correctly determine the availability of APIs in the code we're building and helps it shut up about some warnings
2020-05-19 21:15:34 -04:00
Lubos Dolezel
d4b5a9ee1d Unfinished work on fseventsd - will be finished after Linux 5.7 is released 2020-05-04 21:09:20 +02:00
Andrew Hyatt
1e440a759c Fix build on clang 10
Fixes #727 (not building on Ubuntu 20.04)

Also detect clang-10 if installed
2020-04-14 22:19:45 -04:00
Andrew Hyatt
a4ce49a7b6 Detect clang-9
clang-8 fails to build on Debian Testing and clang-7 is no longer available
2020-04-14 18:08:03 -04:00
Andrew Hyatt
9dca710a60 Fix compiler detection on fresh Debian 10
Fixes #535
2020-04-14 13:10:52 -04:00
Stephen
e3eab6f5f9
Using Github Actions to build (#667)
* Create ccpp.yml

use git remote set-url

run makedeb

add ccache

add devscripts

use ccache if possible

src before made

* Update ccpp.yml

* move ccache and different debug

* naming

* add artifacts

* try with a cp

* try escaping? now regex might now work

* try moving to debbuild

* move and compress debs

* try seperate jobs

* try getting source in, probably too big

* fix name
2020-04-13 14:18:08 +02:00
Lubos Dolezel
34147e8243 Fix #722 2020-03-31 15:19:07 +02:00
Lubos Dolezel
495b0f23fc Missing CMakeLists.txt must trigger an error 2020-03-20 19:11:20 +01:00
Andrew Hyatt
d75567cb06
Revert "Install shortcuts for DMGs and PKGs"
This reverts commit d1406957df.
2020-03-17 14:56:31 -04:00
Andrew Hyatt
d1406957df
Install shortcuts for DMGs and PKGs
Fixes #643
2020-03-17 13:39:29 -04:00
Lubos Dolezel
4da40f9cf5 Make user's home specific to the prefix, provide a link to real home via LinuxHome 2020-02-25 21:15:19 +01:00
TheBrokenRail
53a8e59b49 Remove FRAMEWORK_* Options 2020-02-16 12:52:31 -05:00
Sergey Bugaev
614782852d Remove host /lib symlinks
We don't need them anymore with vchroot
2020-02-10 06:20:51 +03:00
Lubos Dolezel
01ac8e22c0 First successful run under vchroot 2020-02-08 15:19:25 +01:00
Andrew Hyatt
bc177bc650
Add CMake option to build unit tests
Pass -DENABLE_TESTS into CMake
2020-01-20 12:56:12 -05:00
TheBrokenRail
d87d703330 Setup Fonts and ld.so during DEB installaton (#605)
* Update CMakeLists.txt

* Update darling.install

* Create darling.postinst

* Update rules
2020-01-04 00:19:14 -05:00
TheBrokenRail
24157d34cb Fix Lintian Overrides (#599) 2020-01-03 22:40:20 -05:00
Andrew Hyatt
7df5cc8042
Add uninstall command and tool
Invoke as 'make uninstall' in CMake build directory
or run as tools/uninstall

Fixes #590
2020-01-03 22:20:04 -05:00
Andrew Hyatt
48b099771b
Shut down running instances during install
This prevents forgetting to shut down darling and wondering why
your changes have no effect.
2019-11-23 17:30:06 -05:00
Andrew Hyatt
d5f4e68180
Allow i386 or x86_64 only builds
Currently x86_64 or i386 only builds fail to enter shell.

CMake generation flags:
Build x86_64 only: -DTARGET_i386=OFF
Build i386 only: -DTARGET_x86_64=OFF

The default is still to build FAT binaries for both.
2019-08-13 14:29:14 -04:00
Andrew Hyatt
36245caa2e
Use different reexport style
The old one couldn't work under the limitations of CMake
2019-06-10 23:25:31 -04:00
Andrew Hyatt
cdba0f1612 Automatically detect compiler 2019-04-06 12:25:26 -04:00
Andrew Hyatt
9c9496ce59 Allow specifying a different compiler
Use -DCMAKE_C_COMPILER and -DCMAKE_CXX_COMPILER
when configuring cmake. The previous behavior overrided
these variables.
2019-01-11 10:43:48 -05:00
Andrew Hyatt
720a5dcb32 Add build option to disable large build items
This greatly speeds up build time when enabled.

For now it disables building JavaScriptCore. Use it like this:

cmake .. -DFULL_BUILD=OFF

To enable large items again, do:

cmake .. -DFULL_BUILD=ON

By default it is ON.

This fixes #391.
2018-12-17 16:22:57 -05:00
Sergey Bugaev
e9cd71b73b Symlink /etc/nsswitch.conf from the host, fixes #416 2018-09-02 23:29:43 +03:00
Sergey Bugaev
2b3ee7776c Symlink /etc/machine-id from the host
This fixes gethostuuid() syscall not working, which surfaced as issues with Core Foundation
2018-08-14 11:17:16 +03:00
Sergey Bugaev
a010709f85 Remove obsolete files 2018-08-14 11:10:57 +03:00
Andrew Hyatt
3f7d4758b9
Xcodeproj fixes (#144) 2018-08-04 13:21:58 -04:00
Lubos Dolezel
b4ebfa955f Build dSYM files for all binaries 2018-07-30 12:22:45 +02:00
Lubos Dolezel
e5d678eaae Add dsymutil CMake detection 2018-07-22 00:26:07 +02:00
Sergey Bugaev
ac2a9af586 Automatically set up /etc/fonts and /usr/lib64 during installation 2018-01-12 22:29:07 +03:00
Sergey Bugaev
49d29fa159 Simplify cmake invocation 2017-09-23 18:48:05 +03:00
Lubos Dolezel
848e3d8f5a Fix missing /tmp 2017-07-24 23:42:39 +02:00
Lubos Dolezel
f5ddaaadd3 private/tmp should be a directory, not a symlink (launchd will wipe it clean every time) 2017-07-19 17:01:35 +02:00
Lubos Dolezel
b2f23864f7 LKM build from CMake (resolves #280) 2017-04-07 18:48:16 +02:00
Lubos Dolezel
334ad7ca7e Fix build with newer clang (#261), update libc++ 2017-03-27 20:53:24 +02:00
Lubos Dolezel
76089ee051 Final changes before merging into master 2017-03-27 12:11:41 +02:00
Lubos Dolezel
9086d21e52 Install /usr/share/zoneinfo symlink 2017-03-09 12:28:37 +01:00
Lubos Dolezel
f986a6161a Merge remote-tracking branch 'origin/master' into using-machos-experiment 2017-02-22 21:49:15 +01:00
Andrew Hyatt
c548fa6e6e Create a udev rule to set /dev/mach to 0666
And update daring.c to print the path of the module was loaded
2017-02-19 17:58:56 -08:00
Lubos Dolezel
70a9948594 Fixing several dependency issues encountered in unclean builds 2017-02-17 18:42:35 +01:00
Lubos Dolezel
fdf53379f8 More stuff building as fat, libsystem linking, the next step is to have dyld link 2017-01-25 23:33:37 +01:00
Lubos Dolezel
8481ea9c4c Work in progress - committing to back up my work 2017-01-24 22:22:04 +01:00
Lubos Dolezel
fcb6eea516 Some initial work in using dylibs for Darling libs 2017-01-17 14:29:01 +01:00
Sergey Bugaev
c02625fbb2 Bring back /etc/localtime symlink 2017-01-16 18:30:50 +03:00