PCSX2 IPC API Reference implementation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
896 B

  1. project('pcsx2_ipc_c', 'cpp', default_options : ['cpp_std=c++17',
  2. 'buildtype=release'])
  3. winsock = dependency('ws2_32', required : false)
  4. thread_dep = dependency('threads')
  5. src = ['src/client.cpp', 'src/pcsx2_ipc.h']
  6. executable('client', src, dependencies : [thread_dep, winsock])
  7. catch2 = dependency('catch2', required : false)
  8. test_src = ['src/tests.cpp']
  9. if catch2.found()
  10. # TODO: in the future if we need to add threads to the API test cases might
  11. # run into an infinite loop, i have absolutely no clue why that happens but
  12. # including thread_dep here just leads to it. so don't include that future me.
  13. e = executable('tests', test_src, dependencies : [catch2, winsock], cpp_args :
  14. '-DTESTS')
  15. test('tests', e)
  16. endif
  17. cleaner = find_program('clang-format', required : false)
  18. if cleaner.found()
  19. run_command(cleaner, '-i', src)
  20. run_command(cleaner, '-i', test_src)
  21. endif