|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 04-Jun-2020 | - |
| .externalToolBuilders/ | H | 04-Jun-2020 | - | 15 | 14 |
| .settings/ | H | 04-Jun-2020 | - | 770 | 766 |
| Eclipse SWT/ | H | 04-Jun-2020 | - | 288,464 | 161,595 |
| Eclipse SWT AWT/ | H | 04-Jun-2020 | - | 1,218 | 771 |
| Eclipse SWT Accessibility/ | H | 04-Jun-2020 | - | 21,653 | 12,102 |
| Eclipse SWT Browser/ | H | 04-Jun-2020 | - | 6,637 | 3,649 |
| Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ | H | 04-Jun-2020 | - | 33,062 | 20,022 |
| Eclipse SWT Drag and Drop/ | H | 04-Jun-2020 | - | 15,304 | 7,305 |
| Eclipse SWT OLE Win32/win32/org/eclipse/swt/ | H | 04-Jun-2020 | - | 7,246 | 4,843 |
| Eclipse SWT OpenGL/ | H | 04-Jun-2020 | - | 2,565 | 1,604 |
| Eclipse SWT PI/ | H | 04-Jun-2020 | - | 200,537 | 173,386 |
| Eclipse SWT Printing/ | H | 04-Jun-2020 | - | 3,875 | 1,879 |
| Eclipse SWT Program/ | H | 04-Jun-2020 | - | 1,461 | 904 |
| Eclipse SWT WebKit/ | H | 04-Jun-2020 | - | 15,675 | 11,350 |
| META-INF/ | H | 03-May-2022 | - | 60 | 53 |
| about_files/ | H | 04-Jun-2020 | - | 386 | 314 |
| build/ | H | 04-Jun-2020 | - | 30 | 29 |
| tasks/ | H | 04-Jun-2020 | - | 26 | 24 |
| .classpath_cocoa | H A D | 04-Jun-2020 | 2.1 KiB | 35 | 34 |
| .classpath_gtk | H A D | 03-May-2022 | 2.1 KiB | 37 | 36 |
| .classpath_gtk_win32 | H A D | 04-Jun-2020 | 2.3 KiB | 38 | 36 |
| .classpath_win32 | H A D | 04-Jun-2020 | 1.8 KiB | 32 | 31 |
| .gitignore | H A D | 04-Jun-2020 | 35 | 5 | 4 |
| .project | H A D | 04-Jun-2020 | 953 | 40 | 39 |
| Readme.Linux.md | H A D | 04-Jun-2020 | 1.4 KiB | 45 | 30 |
| Readme.Win32.md | H A D | 04-Jun-2020 | 6.2 KiB | 127 | 91 |
| Readme.macOS.md | H A D | 04-Jun-2020 | 5.4 KiB | 94 | 68 |
| Readme.md | H A D | 04-Jun-2020 | 1.7 KiB | 52 | 35 |
| build.properties | H A D | 04-Jun-2020 | 777 | 20 | 18 |
| build.xml | H A D | 04-Jun-2020 | 2.8 KiB | 74 | 51 |
| buildFragment.xml | H A D | 04-Jun-2020 | 16.4 KiB | 356 | 318 |
| buildInternal.xml | H A D | 04-Jun-2020 | 2.1 KiB | 51 | 24 |
| buildSWT.xml | H A D | 03-May-2022 | 40.9 KiB | 1,072 | 914 |
| plugin.properties | H A D | 04-Jun-2020 | 607 | 15 | 15 |
| pom.xml | H A D | 04-Jun-2020 | 5.2 KiB | 97 | 83 |
Readme.Linux.md
1# About
2
3The SWT Linux port is based on the GTK.
4
5The natives are build using make and (by default) gcc.
6
7# Development overview
8SWT is made up of 2 parts, Java and the natives (written in C).
9
10* **Java Part**
11If you only make changes in the Java part or need to configure SWT for running
12snippets, then you don't need to recompile the natives, instead, you can just
13use the pre-compiled libraries in the binary repository.
14
15* **Natives Part**
16Make sure the binary project for your platform is imported and open in your
17workspace.
18
19## Building Natives
20
21### Building 64bit natives for GTK3
22
23You need to install the following on your system:
24
25* make
26* gcc
27* GTK+ development files (gtk3-devel)
28* Java 8 or 11 JDK
29* (optional) Webkit for GTK development files (webkit2gtk3-devel)
30
31### Building and Testing locally
32
33Import and build the SWT project `bundles/org.eclipse.swt` in Eclipse. See the
34platform independent Readme for how to set the .classpath. This will populate
35the `bundles/org.eclipse.swt/bin/library` with the native code and build files.
36
37To build SWT natives run the `build.sh` script in `./bin/library` directory. To
38use the locally build natives run the build script with the 'install' argument
39(`./build.sh install`) or --help to see more options.
40
41You can find additional information on GTK SWT development can be found in
42Eclipse Wiki.
43
44https://wiki.eclipse.org/SWT/Devel/Gtk/Dev_guide
45
Readme.Win32.md
1# About
2
3The document is structured so that you only need to read up to the point that you require, with advanced topics at the bottom.
4
5The SWT windows port is based on the Win32 api.
6
7The natives are compiled via an ant build.xml script with the Microsoft Visual Studio (2017) C++ compiler.
8
9# Development overview
10SWT is made up of 2 parts, Java and the natives (written in C).
11
12* **Java Part**
13If you only make changes in the Java part or need to configure SWT for running snippets,
14then you don't need to recompile the natives, instead, you can just use the pre-compiled
15libraries in the binary repository.
16
17* **Natives Part**
18(Make sure the binary project for your platform is imported and open in your workspace).
19
20## Configure workspace to run snippets.
21
22* Download & install Java *JDK* (Last tested on JDK9) http://www.oracle.com/technetwork/java/javase/downloads/index.html
23* Download and install Eclipse. Either the "Eclipse IDE for Eclipse Committers" or a recent integration build:
24 http://download.eclipse.org/eclipse/downloads/
25* (Optionally) install CDT from marketplace if you want to work on C/Native parts of SWT.
26* (if not already installed) installed EGit integration.
27* Open the git perspective. Add the following two repositories, which can be found on: (use git protocol)
28 - http://git.eclipse.org/c/platform/eclipse.platform.swt.git/
29 - http://git.eclipse.org/c/platform/eclipse.platform.swt.binaries.git/
30* From swt repo, import most projects (except Cocoa/Gtk, root 'swt' project, once)
31* In org.eclipse.swt project, you need to copy .classpath_win32 to .classpath & refresh/rebuild workspace.
32 (This can be done via command line or by not-filtering *.resources in package view).
33* From swt.binary repo, import the project that reflects your platform.
34* In the snippet project, add the swt project as dependency to launch snippets.
35* You should be able to run snippets now. (e.g Snippet1).
36
37## (Advanced) Building Natives.
38
39### Building just 64bit natives with no Webkit
40(Last tested on Win10 64 bit & Java 11. May 2019):
41
42You need to install the following on your system:
43
44* Microsoft Visual Studio - Community and Windows 10 SDK: (1*)
45 https://visualstudio.microsoft.com/vs/community/
46 Either select the components "MSVC C++-x64/x86-Buildtools" and "Windows 10 SDK"
47 or the workload "Desktop development with C++" which includes the required components and some more.
48* (Optional) Install Cygwin
49* Install Java 8 or 11. Oracle JDK or IBM JDK:
50 http://www.oracle.com/technetwork/java/javase/overview/java8-2100321.html
51 https://developer.ibm.com/javasdk/downloads/
52
53### Building and Testing locally
54
55In the binary git repo, in the windows project, you can build the natives via the build.xml. To do so:
56
57* In Eclipse, in the binary project org.eclipse.swt.win32.win32.x86_64, right click on build.xml:
58* Run As -> Ant Build ...
59* On the Targets tab check the build_libraries target (it should be the only one check for just the natives).
60* On the JRE tab select "Run in the same JRE as the workspace"
61* On the Refresh tab check "Refresh resources upon completion" to refresh your workspace after running the build; this ensures that Eclipse will pick up the fresh binaries
62* Press the "Run" button to begin.
63* If compile fails, inspect build log for warnings, they can point out issues in your configuration.
64
65To test if you binaries actually get used, you could try to checkout an older binary repo commit with old
66bindings. Then try to run a snippet and get the 'missing natives' error. Then if you build the natives
67and the snippet(s) work, it shows that you've build them successfully.
68
69### Optional additional configuration
70* Install and configure Cygwin SSH Server on Windows. (Make sure 'openssh' package is installed).
71 See: https://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#EMBSC281
72* Configure the machine for password-less SSH authentication with the Hudson machine.
73 For more details you can refer: http://users.cecs.anu.edu.au/~xzhang/pubDoc/IT/SSH%20without%20password%20from%20Windows.htm
74 Sharing some key steps below(which I recall):
75 - Generate the 'dsa' public/private key from your "swtbuild" account from windows machine.
76 - Now login to the Hudson machine with "swtbuild" account.
77 - Copy the public keys and register then on the Hudson machine.. this should enable password-less authentication.
78
79## (More advanced) (Optional) Building Webkit
80Note, I.E is the default backend. But Webkit is also a possible alternative Browser backend.
81
82Disclaimer:
83
84Note Webkit SDKs are an older version being consumed by SWT native build process and Webkit build binaries are no more available for download in public Webkit download page (https://webkit.org/downloads/)
85
86But WebKit-r72896 sources are still avilable for download via either of:
87https://builds-nightly.webkit.org/files/trunk/src/WebKit-r72896.tar.bz2
88http://build.eclipse.org/eclipse/swt/WebKit-r72896.tar.bz2
89
90Webkit SDKs:
91
92* WebKit-r72896 http://build.eclipse.org/eclipse/swt/WebKit-r72896.zip
93* WebKitSupportLibrary http://build.eclipse.org/eclipse/swt/WebKitSupportLibrary.zip
94
95
96Steps:
97
98* Create an SWT Build dir such as `C:\SWT_BUILD_DIR`
99* In your enviornment:
100 `set SWT_BUILD_DIR=YOUR.DIR`
101* Unzip two Webkit SDks into:
102 - `SWT_BUILD_DIR\Webkit\r72896`
103 - `SWT_BLUID_DIR\Webkit\SupportLibrary`
104 - (Note: SWT's Webkit support exists for SWT 32bit on Windows, so Webkit SDKs are consumed only by the SWT 32bit build process)
105
106## Custom Java paths and 32 bit builds
107
108You can specify a specific java sdk via:
109 `set SWT_JAVA_HOME=<YOUR_PATH>`
110
111To do a 32 bit build, install a 32bit java & specify it's path or put it into:
112`SWT_BUILD_DIR\Java\Oracle\jdk1.8.0-latest\x86`
113
114For building windows native build for 32bit, you need to convert the source to 32bit first, by running 'replace.64.to.32' target.
115Once sources are converted to 32bit you can run the 'build_libraries' target for ${workspace_loc:/org.eclipse.swt.win32.win32.x86/build.xml}
116
117## Hudson
118(Optional for local setup)
119Now you can point the Windows hudson job to this machine and trigger a native build.
120Note: For testing purpose from hudson, temporarily turn the nativeChanges flag to 'true' to force a native build compilation.
121
122# Footnotes
123[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=526802
124
125
126
127