finish refactor, add docs and CI
This commit is contained in:
+13
-1
@@ -56,13 +56,25 @@ pkg_check_modules(PORTLIBS REQUIRED IMPORTED_TARGET ${NXST_PKG_MODULES})
|
||||
|
||||
target_include_directories(NXST PRIVATE ${PORTLIBS_INCLUDE_DIRS})
|
||||
|
||||
# ── Link libraries ────────────────────────────────────────────────────────────
|
||||
# ── Plutonium static library ──────────────────────────────────────────────────
|
||||
set(LIBPU_A ${CMAKE_SOURCE_DIR}/lib/Plutonium/lib/libpu.a)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${LIBPU_A}
|
||||
COMMAND make -C ${CMAKE_SOURCE_DIR}/lib/Plutonium -j
|
||||
COMMENT "Building Plutonium (libpu.a)"
|
||||
)
|
||||
add_custom_target(plutonium DEPENDS ${LIBPU_A})
|
||||
add_dependencies(NXST plutonium)
|
||||
|
||||
# ── Link libraries ────────────────────────────────────────────────────────────
|
||||
# Order matters for static linking: put most dependent libs first.
|
||||
# libpu.a first (contains C wrappers not in Plutonium source).
|
||||
# drm_nouveau, harfbuzz, freetype, z appended explicitly after pkg-config output
|
||||
# to fix the freetype→harfbuzz static link order (see build notes from libnx update).
|
||||
target_link_libraries(NXST PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/lib/Plutonium/lib/libpu.a
|
||||
${LIBPU_A}
|
||||
PkgConfig::PORTLIBS
|
||||
drm_nouveau
|
||||
harfbuzz
|
||||
|
||||
Reference in New Issue
Block a user