Overview of PackrLauncher
masterjava command.repository·master·Indexed 25 days ago
https://github.com/libgdx/packrA repository containing PackrLauncher, which provides native code to launch a Java Virtual Machine (JVM) using a custom executable, and dropt, a minimalistic, portable C99 library for command-line option parsing featuring a callback-based architecture and GNU-style long options.
java command.gtest/gtest-printers.h for specific implementation details and requirements.You can inject custom configurations into GoogleTest by defining specific macros before including gtest.h. This allows you to provide custom implementations for stack trace retrieval and temporary directory management.
Available macros:
GTEST_OS_STACK_TRACE_GETTER_: The name of an implementation of OsStackTraceGetterInterface.GTEST_CUSTOM_TEMPDIR_FUNCTION_: An override for testing::TempDir(). The implementation must match the semantics and signature of testing::TempDir.The gtest-port.h header allows for deep customization of GoogleTest's core behaviors, including logging, threading, and symbol exporting. This is typically used when porting GoogleTest to environments with non-standard library support.
Define the following macros and provide implementations for LogToStderr() and FlushInfoLog():
GTEST_LOG_(severity)GTEST_CHECK_(condition)Define these macros to indicate existing support for threading primitives:
GTEST_HAS_NOTIFICATION_: Set if Notification is already provided.GTEST_HAS_MUTEX_AND_THREAD_LOCAL_: Set if Mutex and ThreadLocal are already provided. If set, you must also provide GTEST_DECLARE_STATIC_MUTEX_(mutex) and GTEST_DEFINE_STATIC_MUTEX_(mutex).GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)GTEST_LOCK_EXCLUDED_(locks)GTEST_HAS_CXXABI_H_: Indicates support for <cxxabi.h>.GTEST_API_: A specifier used for exporting API symbols (e.g., for DLL/shared library visibility).When integrating dropt, be aware of the following:
argv array. On Windows, you should use CommandLineToArgvW or the __argv global from the Microsoft C runtime library./option vs -option) and encourages a consistent interface.dropt provides several standard command-line parsing features:
--option.-abc is treated as -a -b -c.= sign (e.g., --option=1 or -x=1).--, allowing subsequent arguments to start with - without being treated as options.--option=1 --option=2 uses the last value). Boolean flags can be explicitly disabled using --flag=0 (while --flag is shorthand for --flag=1).