Skip to content

Rebase onto dev - #22

Open
i8degrees wants to merge 534 commits into
feature/AudioEnginefrom
dev
Open

Rebase onto dev#22
i8degrees wants to merge 534 commits into
feature/AudioEnginefrom
dev

Conversation

@i8degrees

Copy link
Copy Markdown
Owner

Review and merge

i8degrees and others added 30 commits April 19, 2026 23:48
These are the absolute minimum required changes to get nomlib
to build on my Xubuntu 14.04.1 LTS box. Unit tests pass and
examples work.

      TODO

- [ ] Publish linux build notes in nomlib's README.md
- [ ] Implement stubbed functions in UnixFile.
- [ ] VisualUnitTest timestamp sync bug; this bug results in multiple
directories being created per screen dump.
No linking stage just yet, but soon.
* Value: Remove assertion check in ::empty && ::clear
* Value: Remove template function ::get_value.
* ValueIteratorBase: Remove key_v2 method (never used).
* Value: Remove commented out ::at function.

* Value: Change return type of Value::size to nom::size_type (from
nom::uint).

* Value: Clean up readability of lesser than handling operator
overload logic.
* Value: Clean up readability of equality handling operator overload
logic.

* Value: Finish out initialization code for non-object value types --
null through boolean types -- when the enumeration ctor is used for
creation.

* VString: Change ArrayIndex integral type to nom::size_type (from
nom::uint).
No linking stage just yet, but soon.
[ai] Remove per-library export header generation and update install paths
This allows us to manually set breakpoints for use with debuggers (i.e., `gdb`).
- `include/nomlib/macros.hpp` - Wrap deletion macros in braces to ensure pointer is set to nullptr
-Wshadow (Rect && File)
- const (senseless)
- color escape codes (invalid ASCII)
- remove NOM_DEBUG requirement for use of compiler specific features -- see NOM_IGNORED_VARS macros
- fix NOM_ASSERT macro when NDEBUG is defined (config.hpp.in)
Remove vcpkg env section from top-level project; this is too difficult to maintain and has been relocated back to `CMakePresets.json`.

Replace several resource dir variables;

- `NOMLIB_RESOURCES_DIR`
- `NOMLIB_SHARED_SUPPORT_DIR`
- `NOM_EXAMPLES_RESOURCES_DIR`

with built-in cmake vars in hopes this improves readability & long-term maintenance.

The `CmakePresets.json` is completely revamped with several new hidden presets that are inherited from depending on the name and OS. The three big ones are: vcpkg, clang and xcode.

Remove cmake functions `install_resource_file` && `install_resource_dir`.

Remove the branches guarded with USE_OLD_OSX_CODE, USE_OLD_WIN_CODE, USE_OLD_OSX_CODE. Hurray!

Ensure that a Python3 interpretor and GNU Patch are available to the vendor build system at configure time. This was done to aid the vcpkg port of nomlib.
Ensure that examples that are console based are
not built with WinMAIN, but SDL2main.

Fix missing standard types

Ensure that even when our SDL2_TTF version check
bits fail -- see `src/CMakeLists.txt` -- that we
have a safe default (assume latest SDL2_TTF).
This resolves all but one remaining issue with the examples on
MacOS. The final remaining issue now is dealing with the copying
of the resource data files into its right place.
This resolves the console executable trying to setup graphics rendering,
which can fail if the video driver does not support OpenGL. This is a
console I/O executable.
One typedef file to modify instead of several.
(I have yet to modify the game.cpp to reflect the changes)
Remove vcpkg env section from top-level project; this is too difficult to maintain and has been relocated back to `CMakePresets.json`.

Replace several resource dir variables;

- `NOMLIB_RESOURCES_DIR`
- `NOMLIB_SHARED_SUPPORT_DIR`
- `NOM_EXAMPLES_RESOURCES_DIR`

with built-in cmake vars in hopes this improves readability & long-term maintenance.

The `CmakePresets.json` is completely revamped with several new hidden presets that are inherited from depending on the name and OS. The three big ones are: vcpkg, clang and xcode.

Remove cmake functions `install_resource_file` && `install_resource_dir`.

Remove the branches guarded with USE_OLD_OSX_CODE, USE_OLD_WIN_CODE, USE_OLD_OSX_CODE. Hurray!

Ensure that a Python3 interpretor and GNU Patch are available to the vendor build system at configure time. This was done to aid the vcpkg port of nomlib.
- Do not use WIN32 exe flag on console apps
  * Ensure that SDL2main is available to link
- Add POST_BUILD step to copy resource files to target exe dir at post-
build cycle. Remove cmake install commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant