tree: 0077b73a66ef58ef496d9bb13da6761862dfba44 [path history] [tgz]
  1. .settings/
  2. about_files/
  3. build/
  4. cocoa/
  5. common/
  6. gtk/
  7. META-INF/
  8. win32/
  9. .classpath_cocoa
  10. .classpath_gtk
  11. .classpath_win32
  12. .gitignore
  13. .project
  14. about.html
  15. build.properties
  16. build.xml
  17. buildChromium.xml
  18. pom.xml
  19. README.md
bundles/org.eclipse.swt.browser.chromium/README.md

Required Java 11.

  1. setup swt development environment

  2. To build swt, open console in ../eclipse.platform.swt folder and type:

    mvn clean package -P build-individual-bundles -DskipTests
    

    Note: This command is only necessary the first time, then it will be enough only with:

    mvn install -P build-individual-bundles -DskipTests
    
  3. To build native binaries, open console in ../eclipse.platform.swt.binaries and type:

    mvn process-resources -P build-individual-bundles -Dnative=gtk.linux.x86_64 -f bundles/org.eclipse.swt.browser.chromium.gtk.linux.x86_64/pom.xml
    

    Note: With this command you can build the natives of chromiun, Rust and JNI, verify that you have something similar to this output, verifying that the construction of rust and the native jni was successful.
    Rust must be installed, for example: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.42.0

  4. To build binaries, In the previous console type:

    mvn package -P build-individual-bundles
    

    This command will build the project regardless of compiling the natives of chromium.

Generic notes:

  • For future constructions, keep in mind to add the “-o” flag to do it offline and avoid unnecessary downloads.
  • IF during the construction of the binaries you observed in the output a log containing “Different”, it means that it is not taking the new changes for the construction and will build with the old.
  1. Finally to run BrowserExample application from eclipse swt example , you need import dependencies in run configurations. Go to run configurations > Dependencies > click in Classpath Entries and add your recent buils jars:

    • ~/.p2/pool/plugins/com.make.chromium.cef.gtk.linux.x86_64_VERSION.jar (You need install CEF)
    • PROJECT-FOLDER/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64/target/org.eclipse.swt.gtk.linux.x86_64-VERSION-SNAPSHOT.jar

    Configure VM arguments. Go to run configurations > Arguments and paste: -Dorg.eclipse.swt.browser.DefaultType=chromium

Delete ~/.swt folder to ensure cached binaries are not used.