Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
bcd56ea
Merge pull request #32 from ynput/main
Lypsolon Dec 10, 2024
af5b9e8
Correction of typos and comments in header file
tadeas-hejnic Feb 7, 2025
57b9b7a
Correction of typos and comments in source file
tadeas-hejnic Feb 7, 2025
3769082
Small adjustments in Instrumentor
tadeas-hejnic Feb 7, 2025
e3029f0
Small typos correction, the time calculation bug fixed
tadeas-hejnic Feb 7, 2025
f7637b5
Typo in file name correction in CMakeList
tadeas-hejnic Feb 7, 2025
f46d214
Typo in file name correction in header file include
tadeas-hejnic Feb 7, 2025
c9b2b73
Typos and inconsistence correction
tadeas-hejnic Feb 7, 2025
b0fea84
Typos and inconsistence correction
tadeas-hejnic Feb 7, 2025
0562879
TODOs for adding the exception message to warning - DONE
tadeas-hejnic Feb 7, 2025
97f77cf
All possible solutions - messy source file (tmp version)
tadeas-hejnic Feb 13, 2025
1299ab5
Test for https connection and playground src file - needs to be delet…
tadeas-hejnic Feb 13, 2025
fca3b60
Fix: default vars were not set after building with test vars
tadeas-hejnic Mar 3, 2025
6330598
Fix: error while building
tadeas-hejnic Mar 3, 2025
303a4a2
Gitignore: ignore the env files for testing
tadeas-hejnic Mar 5, 2025
74e5261
Test: env variables are loaded from env file
tadeas-hejnic Mar 5, 2025
203e426
Test: env variables are loaded from env file
tadeas-hejnic Mar 5, 2025
be9d172
Test: new function for loading the variables from env file
tadeas-hejnic Mar 5, 2025
db95398
Test: new function implementation for loading the variables from env …
tadeas-hejnic Mar 5, 2025
ab5a26c
Build: the previus implementation didn't work on windows
tadeas-hejnic Mar 5, 2025
48f4d69
Build: the previus implementation didn't work on windows
tadeas-hejnic Mar 5, 2025
6bf6bc6
Https fix: implementation working on windows
tadeas-hejnic Mar 5, 2025
46b551a
Cross-platform: works on linux, should work on windows
tadeas-hejnic Mar 10, 2025
506f69e
Cross-platform: works on linux, should work on windows, cleaning up t…
tadeas-hejnic Mar 10, 2025
60ab691
Cross-platform: small edits
tadeas-hejnic Mar 10, 2025
a7eb204
Cross-platform: works on linux, should work on windows
tadeas-hejnic Mar 10, 2025
ed6515f
Cross-platform: adjustments for stop test server on windows
tadeas-hejnic Mar 10, 2025
0bcf40c
Cross-platform: adjustments of starting test server on windows
tadeas-hejnic Mar 10, 2025
c298526
Conflict local X head
tadeas-hejnic Mar 14, 2025
301c26f
Code hygiene
tadeas-hejnic Mar 14, 2025
193c6ef
Code hygiene
tadeas-hejnic Mar 14, 2025
db6521a
Test: delete of playground source file
tadeas-hejnic Mar 17, 2025
c249415
Constructor: The change that has not been included somehow - already …
tadeas-hejnic Mar 17, 2025
4a0f60d
Constructor: The change that has not been included somehow - already …
tadeas-hejnic Mar 17, 2025
f25eb33
Test: Run tests without printing results
tadeas-hejnic Mar 17, 2025
3f2730f
Test: new endpoint added - /api/info
tadeas-hejnic Mar 28, 2025
dd5c22a
Test: unnecessary arguments deleted
tadeas-hejnic Mar 28, 2025
f219106
Test: unnecessary arguments deleted
tadeas-hejnic Mar 28, 2025
6285410
Test: unnecessary arguments deleted
tadeas-hejnic Mar 28, 2025
a9c1ea1
Test: unnecessary arguments deleted
tadeas-hejnic Mar 28, 2025
47d2162
SSL: added an option for loading a cert file from the newcerts/ direc…
tadeas-hejnic Mar 28, 2025
7eca99b
SSL: default cert file
tadeas-hejnic Mar 28, 2025
12b8fce
Build: added line that fixes the issue when including cpp-api to othe…
tadeas-hejnic Mar 31, 2025
0a14d99
Test: uncomment of the function used in tests
tadeas-hejnic Apr 1, 2025
9d047fc
Log: change the category of the log msg, small adjustments in code fo…
tadeas-hejnic Apr 7, 2025
0132dde
Merge branch '17-ayonapiget-dose-not-check-for-failed-httplib-connect…
tadeas-hejnic Apr 7, 2025
e16655d
Changing the git pointer to get the bug fix with AyonLogger
tadeas-hejnic Apr 7, 2025
871ed1b
Fix: fix of hardcoded platform in GET
tadeas-hejnic Apr 7, 2025
92c0eef
Log: added missing log for one case of setting ca cert
tadeas-hejnic Apr 7, 2025
5fba7dd
auto-detect service api key or user token
iLLiCiTiT Aug 29, 2025
a04f127
fill site id in headers and use m_headers at all places
iLLiCiTiT Sep 1, 2025
a8bed00
keep original logic to add site id only in resolvePath
iLLiCiTiT Sep 3, 2025
c103681
Merge pull request #38 from ynput/enhancement/server-api-user-token
iLLiCiTiT Sep 3, 2025
65baff2
New cmakelists to make it work with resolver build
tadeas-hejnic Nov 12, 2025
07b2768
new CMakeLists in cpp-dev-tools
tadeas-hejnic Nov 12, 2025
e82add7
Test CMakeLists - fix of different versions of libs
tadeas-hejnic Nov 19, 2025
4a1c7e3
Fix of segfault - delete the responsible line with res->status
tadeas-hejnic Nov 19, 2025
a20e82b
Debug prints added - should be deleted before merge
tadeas-hejnic Nov 24, 2025
94f686c
CMakeLists
tadeas-hejnic Nov 24, 2025
e38be43
Checkout to the fix of logger
tadeas-hejnic Nov 24, 2025
dea9688
typo fix
tadeas-hejnic Dec 2, 2025
d11ec60
use std::filesystem::path instead of platform ifdef
tadeas-hejnic Dec 2, 2025
28ac24f
typo fix
tadeas-hejnic Dec 2, 2025
f997f3e
Code review suggestions, cleaning
tadeas-hejnic Dec 3, 2025
7165971
Use logger instead of stdout
tadeas-hejnic Dec 8, 2025
9ede5b8
Get the ca cert filepath from the env variable instead of finding it
tadeas-hejnic Dec 8, 2025
ac1dfc6
Get back the previous implementation of getting cert file and add the…
tadeas-hejnic Dec 8, 2025
86fb738
debug prints, logger file creation better handling
tadeas-hejnic Dec 11, 2025
17ae0de
better handling in constructor + logger changes
tadeas-hejnic Dec 16, 2025
bf69889
Revert "better handling in constructor + logger changes"
tadeas-hejnic Dec 16, 2025
fec1c3c
openssl v1
tadeas-hejnic Dec 16, 2025
d57f438
opensslL renamed to support both versions
tadeas-hejnic Dec 16, 2025
9e49ea4
logger adjustments + better handling in constructor
tadeas-hejnic Dec 16, 2025
e286206
support both versions of openssl
tadeas-hejnic Dec 16, 2025
bb23fb3
Merge pull request #35 from ynput/17-ayonapiget-dose-not-check-for-fa…
tadeas-hejnic Dec 17, 2025
bc6f833
appDataFoulder.h -> appDataFolder.h
tadeas-hejnic Dec 17, 2025
1e8724b
extra handle for JTRACE
tadeas-hejnic Dec 17, 2025
9c919c1
merge
tadeas-hejnic Dec 17, 2025
1cbde64
remove duplicated lines
tadeas-hejnic Dec 17, 2025
aecf108
typo fix
tadeas-hejnic Dec 17, 2025
37259c8
typo fix
tadeas-hejnic Dec 17, 2025
d868e6e
typo in success
tadeas-hejnic Dec 17, 2025
0e3e80a
get back to prev version
tadeas-hejnic Dec 17, 2025
06e1807
checkout to latest impl of logger
tadeas-hejnic Dec 17, 2025
4f78984
add missing hashtag
tadeas-hejnic Dec 17, 2025
6bc2826
minor changes, m_headers use in resolvePath
tadeas-hejnic Jan 6, 2026
5d2e119
fixing naming convention diffs
tadeas-hejnic Jan 6, 2026
81ffa2e
code hygiene, variables order, naming convention, ...
tadeas-hejnic Jan 6, 2026
856ded5
m_Log -> m_log to match the naming convention
tadeas-hejnic Jan 6, 2026
f45f4e7
fix of variable name
tadeas-hejnic Jan 6, 2026
70ef824
fix of compiler errors
tadeas-hejnic Jan 6, 2026
1adbf5a
variable names fix
tadeas-hejnic Jan 6, 2026
9be5dfe
libs added for windows build
tadeas-hejnic Jan 27, 2026
c8e66d8
fixes for windows builds
tadeas-hejnic Jan 27, 2026
7bede18
fix typo: ENALBE -> ENABLE
tadeas-hejnic Jan 28, 2026
8c8be0b
include order
tadeas-hejnic Jan 28, 2026
efb2a61
naming conventions in Instrumentor.h
tadeas-hejnic Jan 28, 2026
ff2a61e
checkout to latest cpp-dev-tools
tadeas-hejnic Jan 28, 2026
27292ed
implementation of name change in cpp-dev-tools
tadeas-hejnic Jan 28, 2026
bae5124
formatiing
tadeas-hejnic Jan 28, 2026
75f6ee9
typo fix
tadeas-hejnic Jan 29, 2026
042b811
mutex locks adjustments - based on copilot code review
tadeas-hejnic Jan 29, 2026
1456d56
Revert "mutex locks adjustments - based on copilot code review"
tadeas-hejnic Jan 29, 2026
62a8c7f
Merge branch '33-feature-request-code-hygiene' of github.com:ynput/ay…
tadeas-hejnic Jan 29, 2026
696f414
mutex locks adjustments - based on copilot code review
tadeas-hejnic Jan 29, 2026
e10f8eb
adjustments in m)headers init
tadeas-hejnic Jan 29, 2026
54a4760
remove unused variables
tadeas-hejnic Jan 29, 2026
98e2027
use nlohmann instead of custom json parsing
tadeas-hejnic Jan 29, 2026
9908cf3
improvements in mutex handling, fix of potential race condition, code…
tadeas-hejnic Jan 29, 2026
c4d6502
Merge pull request #39 from ynput/33-feature-request-code-hygiene
tadeas-hejnic Feb 23, 2026
aad270b
checkout to changes in cpp-dev-tools
tadeas-hejnic Mar 6, 2026
6ec7bdd
changes in cpp-dev-tools
tadeas-hejnic Mar 16, 2026
619887d
checkout to latest release
tadeas-hejnic Mar 16, 2026
d035c14
Merge pull request #40 from ynput/cpp-dev-tools-changes
tadeas-hejnic Mar 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ test_logs/
AyonCppApi_CiCd/
AyonCppApi_cicd/
__pycache__
.env*
44 changes: 33 additions & 11 deletions AyonBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,41 @@
AyonCppApiPrj.add_pip_package("uvicorn[standard]==0.25.0")
AyonCppApiPrj.add_pip_package("requests")

AyonCppApiPrj.setVar("AYON_CPP_API_ENALBE_GBENCH", "OFF")
AyonCppApiPrj.setVar("AYON_CPP_API_ENALBE_GTEST", "OFF")
AyonCppApiPrj.setVar("AYON_CPP_API_ENABLE_GBENCH", "OFF")
AyonCppApiPrj.setVar("AYON_CPP_API_ENABLE_GTEST", "OFF")
AyonCppApiPrj.setVar("JTRACE", "0")
AyonCppApiPrj.setVar("ReleaseType", "Release")

AyonCppApiPrj.setup_prj()


SetDefaultVars = Project.Stage("SetDefaultVars")
SetDefaultVars.add_funcs(
Project.Func("", AyonCppApiPrj.setVar, "AYON_CPP_API_ENABLE_GBENCH", "OFF"),
Project.Func("", AyonCppApiPrj.setVar, "AYON_CPP_API_ENABLE_GTEST", "OFF"),
Project.Func("", AyonCppApiPrj.setVar, "JTRACE", "0"),
Project.Func("", AyonCppApiPrj.setVar, "ReleaseType", "Release"),
)
AyonCppApiPrj.add_stage(SetDefaultVars)

SetTestVars = Project.Stage("SetTestVars")
SetTestVars.add_funcs(
Project.Func("", AyonCppApiPrj.setVar, "AYON_CPP_API_ENALBE_GBENCH", "ON"),
Project.Func("", AyonCppApiPrj.setVar, "AYON_CPP_API_ENALBE_GTEST", "ON"),
Project.Func("", AyonCppApiPrj.setVar, "AYON_CPP_API_ENABLE_GBENCH", "ON"),
Project.Func("", AyonCppApiPrj.setVar, "AYON_CPP_API_ENABLE_GTEST", "ON"),
Project.Func("", AyonCppApiPrj.setVar, "JTRACE", "1"),
Project.Func("", AyonCppApiPrj.setVar, "ReleaseType", "Release"),
)
AyonCppApiPrj.add_stage(SetTestVars)

SetDefaultVars = Project.Stage("SetDefaultVars")
SetDefaultVars.add_funcs(
Project.Func("", AyonCppApiPrj.setVar, "AYON_CPP_API_ENABLE_GBENCH", "OFF"),
Project.Func("", AyonCppApiPrj.setVar, "AYON_CPP_API_ENABLE_GTEST", "OFF"),
Project.Func("", AyonCppApiPrj.setVar, "JTRACE", "0"),
Project.Func("", AyonCppApiPrj.setVar, "ReleaseType", "Release"),
)
AyonCppApiPrj.add_stage(SetDefaultVars)

CleanUpStage = Project.Stage("Cleanup")
binFoulder = os.path.join(os.getcwd(), "bin")
buildFoulder = os.path.join(os.getcwd(), "build")
Expand Down Expand Up @@ -59,8 +77,8 @@
".",
"-B",
"build",
lambda: f"-DAYON_CPP_API_ENALBE_GBENCH={AyonCppApiPrj.getVar('AYON_CPP_API_ENALBE_GBENCH')}",
lambda: f"-DAYON_CPP_API_ENALBE_GTEST={AyonCppApiPrj.getVar('AYON_CPP_API_ENALBE_GTEST')}",
lambda: f"-DAYON_CPP_API_ENABLE_GBENCH={AyonCppApiPrj.getVar('AYON_CPP_API_ENABLE_GBENCH')}",
lambda: f"-DAYON_CPP_API_ENABLE_GTEST={AyonCppApiPrj.getVar('AYON_CPP_API_ENABLE_GTEST')}",
lambda: f"-DJTRACE={AyonCppApiPrj.getVar('JTRACE')}",
lambda: f"-DCMAKE_BUILD_TYPE={AyonCppApiPrj.getVar('ReleaseType')}",
),
Expand Down Expand Up @@ -151,13 +169,15 @@ def startTestServer():

def CheckTestServer():
import requests

response = requests.get("http://localhost:8003/")
print("Test Respone", response.text)


def stopTestServer():
ServerPocVar.kill()
if sys.platform == "win32":
ServerPocVar.join(timeout=2)
else:
ServerPocVar.kill()


SetupTestServer = Project.Stage("SetupTestServer")
Expand Down Expand Up @@ -195,11 +215,13 @@ def stopTestServer():
AyonCppApiPrj.creat_stage_group(
"CleanBuild",
CleanUpStage,
SetDefaultVars,
BuildStage,
)
AyonCppApiPrj.creat_stage_group(
"CleanBuildAndDocs",
CleanUpStage,
SetDefaultVars,
BuildStage,
DoxyGenStage,
)
Expand All @@ -222,15 +244,15 @@ def stopTestServer():
)

AyonCppApiPrj.creat_stage_group(
"BuildAndBnech",
"BuildAndBench",
SetTestVars,
BuildStage,
SetupTestServer,
BenchStage,
StopTestServer,
)
AyonCppApiPrj.creat_stage_group(
"CleanBuildAndBnech",
"CleanBuildAndBench",
CleanUpStage,
SetTestVars,
BuildStage,
Expand All @@ -239,7 +261,7 @@ def stopTestServer():
StopTestServer,
)
AyonCppApiPrj.creat_stage_group(
"CleanBuildAndBnechPlusTest",
"CleanBuildAndBenchPlusTest",
CleanUpStage,
SetTestVars,
BuildStage,
Expand Down
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ set(AR_PROJECT_NAME AyonCppApi)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if(NOT DEFINED JTRACE)
set(JTRACE 0)
endif()
add_compile_definitions(JTRACE=${JTRACE})

option(BUILD_TEST "Build the test application" OFF)
Expand All @@ -35,23 +38,22 @@ include_directories("${CMAKE_CURRENT_SOURCE_DIR}/ext/json/include")

set(AYON_CPPTOOLS_BUILD_LOGGER 1)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/ext/ayon-cpp-dev-tools")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/ext/ayon-cpp-dev-tools/src/")


project(${AR_PROJECT_NAME} VERSION 1.0.0 LANGUAGES CXX)

if(AYON_CPP_API_ENALBE_GTEST)
if(AYON_CPP_API_ENABLE_GTEST)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/ext/googletest")
endif()
if(AYON_CPP_API_ENALBE_GBENCH)
if(AYON_CPP_API_ENABLE_GBENCH)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/ext/benchmark")
endif()

if(AYON_CPP_API_ENALBE_GTEST OR AYON_CPP_API_ENALBE_GBENCH)
if(AYON_CPP_API_ENABLE_GTEST OR AYON_CPP_API_ENABLE_GBENCH)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/test")
endif()


add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/src/AyonCppApi")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/AyonCppApi")

target_link_libraries(AyonCppApi PUBLIC AyonCppDevToolsLib)
Loading