begin structure for realcore/realfile/snd libs

make the binary link to realcore
This commit is contained in:
Lily Tsuru 2022-07-01 09:53:04 -05:00
parent b747dd5e2e
commit 490c6b4b5d
10 changed files with 58 additions and 3 deletions

View File

@ -8,4 +8,6 @@ endif()
include(${CMAKE_SOURCE_DIR}/cmake/Policies.cmake)
project(ssxog LANGUAGES C CXX)
add_subdirectory(src/libs)
add_subdirectory(src/bx)

View File

@ -59,4 +59,4 @@ Note that the Ninja CMake generator does not work with the SCE SDK, and should n
# Documentation
[Style Guide](docs/styleguide.md)
[Style Guide](docs/styleguide.md) - the style for the SSX codebase.

View File

@ -12,6 +12,7 @@ target_link_libraries(ssx
#kernel
# Project libraries (by alias)
REAL::core
)
set_target_properties(ssx PROPERTIES

View File

@ -5,6 +5,4 @@
int main(int argc, char** argv)
{
printf("meow\n");
void* a = nullptr;
}

2
src/libs/CMakeLists.txt Normal file
View File

@ -0,0 +1,2 @@
add_subdirectory(real)
#add_subdirectory(snd)

View File

@ -0,0 +1,4 @@
# master cmakelists for REAL
# brings in every lib tree
add_subdirectory(realcore)

View File

@ -0,0 +1,15 @@
#ifndef REAL_EACMEM_H
#define REAL_EACMEM_H
#include <stddef.h>
// MB_... flags definition
// default
#define MB_LOW 0x00
//....
char* MEM_alloc(const char* tag, size_t size, int flags);
void MEM_free(void* ptr);
#endif // REAL_EACMEM_H

View File

@ -0,0 +1,14 @@
add_library(realcore
inittmr.cpp
)
set_target_properties(realcore PROPERTIES
CXX_STANDARD 98
CXX_EXTENSIONS ON
CXX_STANDARD_REQUIRED ON
)
# alias target.
add_library(REAL::core ALIAS realcore)

View File

@ -0,0 +1,19 @@
#ifdef BX_PLATFORM_PS2
// called on intc
static void tintchandler()
{
}
#endif
void inittimer(int hz)
{
#ifdef BX_PLATFORM_PS2
#endif
}