mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 01:14:56 +00:00
Modules generation tool (#81)
* Modules generation tool * apply clang format to generator * @whereismyfoodat suggestions * added reuse headers * reuse part2 * reuse part3 * reuse part3 * replace with hex_id the unknown functions to avoid compile errors with unknown characters from encode_id * fixes in generation * some sample module code from autogen tool * clang format fix
This commit is contained in:
parent
d89653551e
commit
08aba86ca1
24 changed files with 46845 additions and 2 deletions
23
tools/ModuleGenerator/CMakeLists.txt
Normal file
23
tools/ModuleGenerator/CMakeLists.txt
Normal file
|
@ -0,0 +1,23 @@
|
|||
# SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
cmake_minimum_required(VERSION 3.22)
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
project(modgen VERSION 1.0.0 LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
|
||||
add_definitions( -DMODULE_DIR="${CMAKE_CURRENT_SOURCE_DIR}/libraries/" )
|
||||
add_definitions( -DLIBDOC_DIR="${CMAKE_CURRENT_SOURCE_DIR}/../../externals/ps4libdoc/system/common/lib/" )
|
||||
|
||||
add_executable(modgen
|
||||
main.cpp
|
||||
json.hpp
|
||||
)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue