mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
--- build/toolchain/gcc_toolchain.gni.orig 2024-08-14 20:54:23 UTC
|
|
+++ build/toolchain/gcc_toolchain.gni
|
|
@@ -56,6 +56,13 @@ if (enable_resource_allowlist_generation) {
|
|
"enable_resource_allowlist_generation=true does not work for target_os=$target_os")
|
|
}
|
|
|
|
+declare_args() {
|
|
+ extra_cflags = ""
|
|
+ extra_cppflags = ""
|
|
+ extra_cxxflags = ""
|
|
+ extra_ldflags = ""
|
|
+}
|
|
+
|
|
# This template defines a toolchain for something that works like gcc
|
|
# (including clang).
|
|
#
|
|
@@ -904,22 +911,12 @@ template("clang_toolchain") {
|
|
# actually just be doing a native compile.
|
|
template("clang_toolchain") {
|
|
gcc_toolchain(target_name) {
|
|
- _path = "$clang_base_path/bin"
|
|
- _is_path_absolute = get_path_info(_path, "abspath") == _path
|
|
-
|
|
- # Preserve absolute paths for tools like distcc.
|
|
- if (_is_path_absolute && filter_include([ _path ], [ "//*" ]) == []) {
|
|
- prefix = _path
|
|
- } else {
|
|
- prefix = rebase_path(_path, root_build_dir)
|
|
- }
|
|
-
|
|
- cc = "${prefix}/clang"
|
|
- cxx = "${prefix}/clang++"
|
|
+ cc = "cc"
|
|
+ cxx = "c++"
|
|
ld = cxx
|
|
- readelf = "${prefix}/llvm-readelf"
|
|
- ar = "${prefix}/llvm-ar"
|
|
- nm = "${prefix}/llvm-nm"
|
|
+ readelf = "readelf"
|
|
+ ar = "ar"
|
|
+ nm = "nm"
|
|
|
|
forward_variables_from(invoker, "*", [ "toolchain_args" ])
|
|
|