@@ -37,11 +37,10 @@ endif()
3737# ================================================================
3838message (STATUS "=== EoS Platform v${PROJECT_VERSION} ===" )
3939message (STATUS " Target: ${EOS_TARGET} " )
40- set (EOS_SOURCE_DIR "" CACHE PATH "Path to EoS source (auto-resolved if empty)" )
41- # Allow user to override repo paths at cmake configure time
40+
4241set (EOS_SOURCE_DIR "" CACHE PATH "Path to EoS source (auto-resolved if empty)" )
4342set (EBOOT_SOURCE_DIR "" CACHE PATH "Path to eBoot source (auto-resolved if empty)" )
44- if ( EXISTS " $ENV{HOME} /.ebuild/repos/eos/CMakeLists.txt" )
43+
4544# --- Auto-resolve EoS source directory ---
4645if (NOT EOS_SOURCE_DIR OR EOS_SOURCE_DIR STREQUAL "" )
4746 # 1. Check ~/.ebuild/repos/eos (cached clone)
@@ -55,15 +54,15 @@ if(NOT EOS_SOURCE_DIR OR EOS_SOURCE_DIR STREQUAL "")
5554 # 3. Fallback to embedded core/eos
5655 elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /core/eos/CMakeLists.txt" )
5756 set (EOS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /core/eos" )
58- message (WARNING "Using embedded core/eos/ is deprecated. Run 'ebuild setup' to use cached repos." )
57+ message (WARNING "Using embedded core/eos/ — run 'ebuild setup' to use cached repos instead ." )
5958 endif ()
6059endif ()
6160
6261if (EOS_SOURCE_DIR AND EXISTS "${EOS_SOURCE_DIR} /CMakeLists.txt" )
6362 add_subdirectory (${EOS_SOURCE_DIR} ${CMAKE_BINARY_DIR} /eos )
6463 message (STATUS " Core/EoS: ON (${EOS_SOURCE_DIR} )" )
6564else ()
66- message (WARNING "EoS source not found. Run 'ebuild setup' or pass -DEOS_SOURCE_DIR=<path>." )
65+ message (WARNING "EoS source not found. Run 'ebuild setup' or set -DEOS_SOURCE_DIR=<path>." )
6766endif ()
6867
6968# --- Auto-resolve eBoot source directory ---
@@ -77,50 +76,6 @@ if(NOT EBOOT_SOURCE_DIR OR EBOOT_SOURCE_DIR STREQUAL "")
7776 elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /../eboot/CMakeLists.txt" )
7877 get_filename_component (EBOOT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../eboot" ABSOLUTE )
7978 # 3. Fallback to embedded core/eboot
80- elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /core/eboot/CMakeLists.txt" )
81- set (EBOOT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /core/eboot" )
82- message (WARNING "Using embedded core/eboot/ is deprecated. Run 'ebuild setup' to use cached repos." )
83- endif ()
84- endif ()
85-
86- if (EBOOT_SOURCE_DIR AND EXISTS "${EBOOT_SOURCE_DIR} /CMakeLists.txt" )
87- add_subdirectory (${EBOOT_SOURCE_DIR} ${CMAKE_BINARY_DIR} /eboot )
88- message (STATUS " Core/eBoot: ON (${EBOOT_SOURCE_DIR} )" )
89- else ()
90- message (WARNING "eBoot source not found. Run 'ebuild setup' or pass -DEBOOT_SOURCE_DIR=<path>." )
91- endif ()
92-
93- set (EOS_SOURCE_DIR "$ENV{HOME} /.ebuild/repos/eos" )
94- elseif (EXISTS "$ENV{USERPROFILE} /.ebuild/repos/eos/CMakeLists.txt" )
95- set (EOS_SOURCE_DIR "$ENV{USERPROFILE} /.ebuild/repos/eos" )
96- # 2. Check sibling directory ../eos
97- elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /../eos/CMakeLists.txt" )
98- get_filename_component (EOS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../eos" ABSOLUTE )
99- # 3. Fallback to embedded core/eos
100- elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /core/eos/CMakeLists.txt" )
101- set (EOS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /core/eos" )
102- message (WARNING "Using embedded core/eos/ — run 'ebuild setup' to use cached repos instead." )
103- endif ()
104- endif ()
105-
106- if (EOS_SOURCE_DIR AND EXISTS "${EOS_SOURCE_DIR} /CMakeLists.txt" )
107- add_subdirectory (${EOS_SOURCE_DIR} ${CMAKE_BINARY_DIR} /eos )
108- message (STATUS " Core/EoS: ON (${EOS_SOURCE_DIR} )" )
109- else ()
110- message (WARNING "EoS source not found. Run 'ebuild setup' or set -DEOS_SOURCE_DIR=<path>." )
111- endif ()
112-
113- # --- Auto-resolve eBoot source directory ---
114- if (NOT EBOOT_SOURCE_DIR )
115- # 1. Check ~/.ebuild/repos/eboot (cached clone)
116- if (EXISTS "$ENV{HOME} /.ebuild/repos/eboot/CMakeLists.txt" )
117- set (EBOOT_SOURCE_DIR "$ENV{HOME} /.ebuild/repos/eboot" )
118- elseif (EXISTS "$ENV{USERPROFILE} /.ebuild/repos/eboot/CMakeLists.txt" )
119- set (EBOOT_SOURCE_DIR "$ENV{USERPROFILE} /.ebuild/repos/eboot" )
120- # 2. Check sibling directory ../eboot
121- elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /../eboot/CMakeLists.txt" )
122- get_filename_component (EBOOT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../eboot" ABSOLUTE )
123- # 3. Fallback to embedded core/eboot
12479 elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /core/eboot/CMakeLists.txt" )
12580 set (EBOOT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /core/eboot" )
12681 message (WARNING "Using embedded core/eboot/ — run 'ebuild setup' to use cached repos instead." )
0 commit comments