-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake changes to generate code #175
Comments
@biwiki , can you please help? Of course if you have time. I'm a little stuck making changes in The situation is following: In the branch 175-cmake-changes-to-generate-code I've made changes that code generator generates files in the Now the similar thing I'd like to have in Many thanks in advance and best regards. |
@aregtech sure, I will look into this when I can have time |
@biwiki , sounds great! |
Ohh it can be a right thing, maintaining 2 different build systems within the same sourcebase can make things complicated |
If you see it's getting too complicated, we can escape and deprecate the build with make. Simply, for a long time it was working fine |
Great to hear that you like the Makefile, but I would say that it is time to deprecate that old build system Code generation with Java can also be a problem. I am not sure if this is documented somewhere but I can understand that users need to install correct Java version a long with other dependencies in order to use the tool
IMO, If this would not take too much efforts, then the code generation tool should be converted (and open) to Python. In embedded domain, there should be more chances that users have knowledge on Python and would be able to resolve dependency issues if there is any with it. |
@biwiki , thank you for your feedback. I appreciate that.
|
This is Java version on my machine
Since we are embedding code generator into the build flow, this can stop users from compiling the library. I am not against using Java :-) But due to this I just dont know how to proceed |
I compiled jar with jdk21. |
yeah it can take huge effort to convert to Python, sorry but it is upto you to decide |
I've made new build of code generator, compiled with jre1.8 (jre8) openjdk version "1.8.0_392"
OpenJDK Runtime Environment (build 1.8.0_392-8u392-ga-1~22.04-b08)
OpenJDK 64-Bit Server VM (build 25.392-b08, mixed mode) The codes are in the branch feature/175-cmake-changes-to-generate-code
|
thanks, yes I can run the code generator on my Linux box now |
Great! |
Description:
The projects, which use Service Interface document file (files with extension
.siml
) contain generated codes, which are manually integrated in the projects by CMakeLists.txt files. Since these files are generated and the sources are kind of fixed, it makes sense to modify the CMakeLists.txt file to generate and compile files during build.Required:
addServiceInterface(myproject, myproject/HelloWordl.siml)
, where themyproject
is the name of the project and static library andmyproject/HelloWordl.siml
is the relative path to the Service Interface document.linkProject(target, myproject)
.Note:
The description might be not really clear. Please start the discussion here and ask questions to @aregtech before starting modifying.
The text was updated successfully, but these errors were encountered: