2024-04-13 13:18:57 -07:00
|
|
|
|
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
|
|
|
|
#define GEN_ENFORCE_STRONG_CODE_TYPES
|
|
|
|
|
#define GEN_EXPOSE_BACKEND
|
|
|
|
|
// #define GEN_DEFINE_ATTRIBUTE_TOKENS
|
|
|
|
|
#define GEN_IMPLEMENTATION
|
2024-10-25 02:04:11 -07:00
|
|
|
|
#include "gen.dep.cpp"
|
2024-04-13 13:18:57 -07:00
|
|
|
|
#include "gen.cpp"
|
|
|
|
|
#include "gen.builder.cpp"
|
2024-04-21 06:51:51 -07:00
|
|
|
|
// #include "gen.scanner.hpp"
|
2024-04-13 13:18:57 -07:00
|
|
|
|
using namespace gen;
|
|
|
|
|
|
2024-04-21 06:51:51 -07:00
|
|
|
|
#ifdef GEN_SYSTEM_WINDOWS
|
|
|
|
|
#include <process.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-04-14 18:51:14 -07:00
|
|
|
|
#include "GasaGenCommon.cpp"
|
2024-04-16 02:02:58 -07:00
|
|
|
|
#include "GasaGen_ue_parse_testing.cpp"
|
2024-04-14 18:51:14 -07:00
|
|
|
|
#include "GasaGen_UGasaAttributeSet.cpp"
|
2024-04-17 09:16:22 -07:00
|
|
|
|
#include "GasaGen_ChangeBPActionMenu.cpp"
|
2024-04-21 06:51:51 -07:00
|
|
|
|
#include "GasaGen_DevOptionsCache.cpp"
|
2024-04-21 21:30:29 -07:00
|
|
|
|
#include "GasaGen_HostWidgetController.cpp"
|
2024-04-22 22:10:02 -07:00
|
|
|
|
#include "GasaGen_NetSlime.cpp"
|
2024-04-21 21:30:29 -07:00
|
|
|
|
|
2024-04-13 13:18:57 -07:00
|
|
|
|
int gen_main()
|
|
|
|
|
{
|
|
|
|
|
gen::init();
|
2024-04-21 06:51:51 -07:00
|
|
|
|
log_fmt("Generating code for the Gasa module\n");
|
2024-04-13 13:18:57 -07:00
|
|
|
|
|
2024-04-14 18:51:14 -07:00
|
|
|
|
// Initialize Globals
|
2024-04-21 06:51:51 -07:00
|
|
|
|
{
|
|
|
|
|
UHT_UCLASS = code_str( UCLASS() );
|
|
|
|
|
UHT_UPROPERTY = code_str( UPROPERTY() );
|
|
|
|
|
UHT_USTRUCT = code_str( USTRUCT() );
|
|
|
|
|
UHT_GENERATED_BODY = code_str( GENERATED_BODY()\n );
|
|
|
|
|
UModule_GASA_API = code_str( GASA_API );
|
|
|
|
|
}
|
2024-04-15 20:09:46 -07:00
|
|
|
|
|
2024-04-21 06:51:51 -07:00
|
|
|
|
// Populate Defines
|
|
|
|
|
{
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_CLASS));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DELEGATE_RetVal_OneParam));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DELEGATE_RetVal_ThreeParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DELEGATE_SixParams));
|
2024-04-21 21:30:29 -07:00
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam));
|
2024-04-21 06:51:51 -07:00
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_FiveParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_FourParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_NineParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_OneParam));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_SevenParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_TwoParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_EVENT_ThreeParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_EVENT_TwoParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_FUNCTION));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_LOG_CATEGORY_EXTERN));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_MULTICAST_DELEGATE_OneParam));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_MULTICAST_DELEGATE_ThreeParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_MULTICAST_DELEGATE_TwoParams));
|
2024-10-19 16:29:53 -07:00
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_TS_MULTICAST_DELEGATE_OneParam));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_TS_MULTICAST_DELEGATE_TwoParams));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DECLARE_TS_MULTICAST_DELEGATE_ThreeParams));
|
2024-04-21 06:51:51 -07:00
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DEFINE_ACTORDESC_TYPE));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_ENUM_CLASS_FLAGS));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_FORCEINLINE_DEBUGGABLE));
|
2024-04-21 15:56:57 -07:00
|
|
|
|
// PreprocessorDefines.append( get_cached_string(str_FORCEINLINE));
|
2024-04-21 06:51:51 -07:00
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_GENERATED_BODY));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_GENERATED_UCLASS_BODY));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_GENERATED_USTRUCT_BODY));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_PRAGMA_DISABLE_DEPRECATION_WARNINGS));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_PRAGMA_ENABLE_DEPRECATION_WARNINGS));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_PROPERTY_BINDING_IMPLEMENTATION));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_RESULT_DECL));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_SLATE_BEGIN_ARGS));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_SLATE_END_ARGS));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_TEXT));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_UCLASS));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_UENUM));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_UFUNCTION));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_UMETA));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_UPARAM));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_UPROPERTY));
|
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_USTRUCT));
|
2024-10-19 16:29:53 -07:00
|
|
|
|
PreprocessorDefines.append( get_cached_string(str_UE_REQUIRES));
|
2024-04-21 06:51:51 -07:00
|
|
|
|
}
|
2024-04-14 18:51:14 -07:00
|
|
|
|
|
2024-10-25 02:04:11 -07:00
|
|
|
|
// gen_UGasaAttributeSet();
|
|
|
|
|
// gen_FGasaDevOptionsCache();
|
|
|
|
|
// gen_UHostWidgetController();
|
2024-04-22 22:10:02 -07:00
|
|
|
|
// gen_netslime_interfaces();
|
2024-04-21 06:51:51 -07:00
|
|
|
|
|
|
|
|
|
// One offs
|
2024-10-25 02:04:11 -07:00
|
|
|
|
if (1)
|
2024-04-21 06:51:51 -07:00
|
|
|
|
{
|
2024-10-25 02:04:11 -07:00
|
|
|
|
ue_parse_testing();
|
|
|
|
|
//swap_SBlueprintActionMenu_Construct();
|
2024-04-21 06:51:51 -07:00
|
|
|
|
}
|
2024-04-13 13:18:57 -07:00
|
|
|
|
return 0;
|
|
|
|
|
}
|