Commit Graph
108 Commits
Author SHA1 Message Date
takase1121 0af4dae0e2 chore: bump versions [skip ci] 2025-06-09 06:45:20 +08:00
Janandtakase1121 9408dddb37 feat: add SDL App Metadata (#2068)
* add SDL App Metadata

* prefix define with LITE
2025-05-18 23:16:09 +08:00
takase1121 bb05cf3e4d SDL3 port (#1756)
* update to SDL 3.2.0

* remove SDL wrap

* fix darwin and windows CI

* update build box, correct msys sdl3 dependency

* port leftovers from renderer backend to SDL3

* remove SDL main dep
the main implementation is now included in a header

* main.c: use SDL_main.h

This needs to be included to work.

* ci: use vcpkg and pkgconf to support SDL3 on MSVC

* ci: use 7z to create zip

* renwindow: create texture and surface suitable for the display

* system: remove trailing whitespace

* renderer: fix trailing whitespace

* system: fix checking the wrong argument

* system: port rmdir and stat to SDL3 API

* system: remove unneeded API level check

* system: fix wrong parameter index

* system: make set_window_hit_test and set_window_bordered accept a window

* docs/system: update docs

* system: restore some comments

* docs/system: add missing documentation for system.text_input

* system: use SDL_setenv_unsafe

* system: add back comment for setenv

* system,renderer: remove unnecessary SDL_ClearError calls

---------

Co-authored-by: takase1121 <20792268+takase1121@users.noreply.github.com>
(cherry picked from commit 2716f14b6903f055f6bdf010a7e4a3d040cf059d)
2025-05-18 22:55:30 +08:00
takase1121 52393aa75e move dependency resolving into source file (#1937)
These are only needed for building the actual project and not for managing resources or setting various flags.
Gets rid of the double `source-only` check and moves it closer to the consumer

(cherry picked from commit 64420f4366a290b3c3f48f0131a8f77312def595)
2025-05-18 22:54:39 +08:00
takase1121 f1ab7de4ea chore: bump versions to v2.1.7 2024-12-05 22:22:30 +08:00
takase1121 8498a988e4 chore: bump versions to v2.1.6 2024-11-29 09:26:39 +08:00
Jan200101andtakase1121 fdfa2f43d3 convert unix style paths literals into meson path segments 2024-11-27 20:53:35 +08:00
Jan200101andtakase1121 319e1e80ef use meson datadir as lite_datadir base 2024-11-27 20:53:35 +08:00
takase1121 af9c8344cf chore: update versions 2024-06-29 22:46:15 +08:00
TakaseandGuldoman c3fa3859f2 subprojects: update lua,pcre2,sdl2 (#1812)
* subprojects: update lua,pcre2,sdl2

* meson.build: remove hidapi usage

* subprojects/sdl2: fix compilation with xinput

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>

---------

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2024-06-23 09:02:55 +08:00
Takase 64b7625b62 Update macOS copyright notice (#1815)
* resources: update copyright in info.plist

* meson.build: dynamically generate current year

"present" may be misleading.

* resources/macos: remove unecessary newlines
2024-06-23 09:02:55 +08:00
Takase 8782c8064f ci: use latest macos images (#1804)
* ci: use latest macos images

* ci/build: clarify the purpose of md5sha1sum

* meson.build: remove hidapi usage

* ci: downgrade macos version for universal build

* scripts: codesign the universal binary with sha1 and sha256

* ci: revert back to macos-14 for universal

* ci/build: remove old comment
2024-06-23 09:02:55 +08:00
takase1121 79b2457556 chore: update version 2024-04-15 10:39:36 +08:00
takase1121 328ed55f83 update version in metadata 2024-01-21 15:13:26 +08:00
takase1121 97a49661e0 chore: update versions 2023-12-29 08:47:22 +08:00
takase1121 9272f5ef2d chore(deps): update SDL2 2023-11-30 11:26:00 +08:00
Janandtakase1121 d937693ddb Use Lua wrap by default (#1481)
Debian and all its derivatives ship a broken Lua 5.4 that is missing some symbols.
To work around broken distros and make development and distribution easier use the wrap by default and add an option to use the system version.
2023-08-26 08:52:25 +08:00
Takase f685293417 Add manifest on Windows (#1405)
* fix(gitignore): add exclusion for manifest files

* feat(windows): add application manifest

* feat(build): use application manifest on windows

* refactor(build): use genrate_file to generate the manifest

* style(manifest): remove trailing whitespace
2023-08-19 12:38:34 +08:00
Janandtakase1121 d54a5d0672 remove static libgcc from meson (#1290) 2023-08-19 12:28:48 +08:00
Jefferson GonzálezandGitHub 3491eb464d Bump version to 2.1.1 (#1284)
* updated wraps
* updated release date
2022-12-28 22:03:36 -04:00
JanandGitHub 5c4d15c4d5 set arch tuple in meson (#1254)
the existing preprocessor logic in C is kept for alternative compilation methods
2022-12-22 11:24:13 -04:00
jgmdev 80f022d8ff meson: bump minimum required version to 0.56 2022-11-14 12:56:15 -04:00
JanandGitHub fb8bc08a67 allow defining the arch tuple via meson (#1153) 2022-10-12 18:33:10 -04:00
JanandGitHub 0277aaf079 meson: fallback onto the C compiler when Lua could not be found (#1134)
Lua provides no offical pkg-config configuration but some systems still have it.
Instead of assuming the System has none, try using the C compiler to find it.
This may give us an incorrect lua version, but its better than nothing at all.
2022-10-03 13:36:39 -04:00
jgmdev 20be2e4f7d updated sdl2 wrap to 2.24 2022-08-24 01:04:09 -04:00
Guldoman 63c818ac45 Enable SDL timers 2022-08-03 17:28:43 +02:00
jgmdev e7d2b03e62 meson: fix not obeyed forcefallback for lua 2022-05-30 13:24:53 -04:00
jgmdev b9bb64a2f0 Merge branch 'master' into master-2.1 2022-05-22 22:26:47 -04:00
Adam Harrison d8436d1e92 Bumped verison number in meson. 2022-05-06 11:51:30 -04:00
jgmdev 93be54e9c3 meson: install docs/api to datadir for lsp support 2022-05-05 13:02:34 -04:00
JanandGitHub 915625b74f Update SDL to 2.0.20 (#884) 2022-04-20 16:30:41 -04:00
JanandGitHub fff10a2612 Cleanup (#826)
* Update meson.build
- add logic to loop over more lua names (in the future more names might be discovered)
- disable warnings and errors on dependencies

* adding missing includes and checks, correct data types, pointer mess […]
- various functions from string.h were used but never defined
- logic was done across multiple different data types with different signedness, got all of them up to snuff
- give 0 sized array size of 1 (array of size 0 is illegal, but rewriting the code is out of the scope of this commit)
- add preprocessor that marks possibly unused argument as such (does not mean they will get optimized out or anything)
- correctly initialize structs with all data needed

All these were found by generating the project using `meson -Dwarning_level=3 -Dwerror=true`

* remove undefined behavior, correct data types

* Comment manual bit manipulation to be investigated

* check for more edge cases, replace multiple cleanups with goto

* remove system specific includes
2022-04-15 11:34:46 -04:00
buffet 9808378511 Add minimum version to lua fallback dependency to avoid confusion 2022-03-25 20:29:28 +00:00
f85612e0f0 Fix Project Scanning (#746)
Removed dmon, and replaced with logic that works across Linux, Mac, FreeBSD and Windows. Have tested on all platforms, and seems to work.

Co-authored-by: Jan200101 <sentrycraft123@gmail.com>
2022-03-06 00:59:22 -05:00
jgmdev 6cb403b450 meson: increased min version to 0.47 and added check flag on run_command. 2022-03-05 20:15:48 -04:00
jgmdev a587182982 meson: when running git rev-parse use HEAD instead of checking current branch name 2022-03-02 18:55:46 -04:00
jgmdev 05e355d383 meson: append git commit if possible and to non release builds 2022-03-02 03:53:04 -04:00
AdamandGitHub 0a70b13a73 Merge pull request #809 from lite-xl/merge-master-2.0
Merge master 2.0
2022-01-28 14:38:22 -05:00
Jan200101 227ca7d0e5 use lua fallback earlier when fallbacks are forced 2022-01-22 23:29:28 +01:00
Francesco Abbate f6a0e12e31 Merge branch 'master-2.0' 2022-01-19 20:31:33 +01:00
Francesco Abbate cd83df1abf Bump version and changelog to prepare 2.0.5 release 2022-01-19 18:18:25 +01:00
Jan200101 192c577966 Add fallbacks to all common dependencies 2022-01-15 00:53:46 +01:00
Jan200101 99ddf1fb92 Migrate to Lua 5.4 2021-12-31 13:53:01 +01:00
Eli Schwartz 7a961c8c8e meson: lower the minimum buildsystem requirements even more
Only a couple trivial features from meson ~0.50 were being used, and
none of them are really needed:

- configure_file() with the install kwarg has always defaulted to
  inferring its value from whether an install_dir was defined. This is
  fine, we don't need to set `install: true` in that case. The kwarg was
  only even added to meson 0.50 for consistency and to allow
  conditionally overriding the file to not install, even when
  install_dir is set. This project does not need that feature.

- path building could historically be done with the join_paths()
  function. Recent versions of meson (0.49) added cosmetic sugar in the
  form of string operator overloading to allow using the division
  operator on two strings. By removing this and using the backwards
  compatible form, we can support older versions of meson.

- sdl2 dependency lookup with hardcoded config-tool method is very
  opinionated about the correct way to look up sdl2, but meson can try
  multiple methods if you permit it, and there is no reason to think
  that config-tool is the only one that returns correct results.

By removing these features, the minimum can be dropped all the way down
to a version that is available on the oldest supported versions of
Ubuntu (18.04), Debian (oldoldstable / Stretch) and anywhere else of
consequence.
2021-12-28 17:50:10 -05:00
Eli Schwartz fcb3c41082 meson: lower the minimum buildsystem requirements
No features of 0.54 are being used, so 0.50 should be perfectly fine.

This drops the minimum requirement down to a version available in the
latest Ubuntu LTS (20.04), which only has 0.53
2021-12-28 17:19:16 -05:00
Francesco Abbate 50247fcd92 Move to 2.0.4 version number 2021-12-20 16:19:15 +01:00
AdamandGitHub f1054b8280 Replace Reproc (#535)
Replace reproc with simpler non-dependency-based process API.
2021-12-11 15:25:35 -05:00
Adam Harrison 96db380c73 Manual merge of into . 2021-11-23 15:57:22 -05:00
Francesco Abbate a9f6f01ed0 Move dmon files into lib/dmon 2021-10-08 22:10:17 +02:00
Francesco Abbate 9c43727ebc Implement directory monitoring using septag/dmon
Use a notification based directory monitoring based on the
septag/dmon lirbary instead of periodically rescan the whole
project's tree.
2021-10-08 21:31:22 +02:00