[cmake-developers] Support of Scala language
CHEVRIER, Marc
marc.chevrier at sap.com
Thu Feb 18 06:28:25 EST 2016
Hi,
I have just started to work to extend CMake to support Scala language.
This language is very similar to Java regarding compilation (scala compiler generates .class (java byte code)) and packaging (binary files can be packaged in jar files) and is running as part of JVM infrastructure.
Currently, there is a module UseJava.cmake which mix two aspects:
* Jar management: add_jar, install_jar and find_jar
* Java specific stuff: doc, etc…
Now, regarding jar management, currently only Java language is supported but, with only very few changes, Scala can be supported as well. So it would be very nice to avoid to duplicate jar management for Scala support.
So, I submit the following proposal, regarding current Java and Scala support, to the discussion:
* Split current module UseJava.cmake into 2 modules:
* UseJar.cmake which will be in charge of jar management, including sources compilation (Java and Scala)
* UseJava.cmake, keep Java specific stuff and also include, for compatibility, module UseJar.cmake
* For Scala support, provide modules:
* FindScala.cmake (same functionality as FindJava.cmake)
* UseScala.cmake which can include UseJar.cmake and provides specific stuff (like create_scaladoc)
Comments are welcome…
Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160218/1e540084/attachment.html>
More information about the cmake-developers
mailing list