Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-patch] Patch: multi-arch CDT build

> 
> We're interested in doing builds for Linux on non-x86 architectures.
> Also, we need to be able to rebuild all the native code at one time.
> I've updated all the native build code to make these things possible.
> This patch is the first step in submitting all of this.
> 
> This patch changes org.eclipse.cdt.core.linux to conform to what I
> think is a reasonable approach to building the native code for
> Eclipse.
> 
> The basic idea is that each Makefile will take certain parameters:
> JAVA_HOME, OS, ARCH, and WS.  Then we derive the information we need
> (e.g., -I option for JNI headers, or install directory for .so) from
> these.
> 
> The next step is to add a `native.xml' where appropriate so that the
> native builds can be driven by ant; I have code for that too.

Fire away.

> 
> The `mkdir's in the appended patch are there because the output
> directory might not always exist.  For instance, that was the case
> when I built on ppc.
> 
> Tom
> 
> Index: ChangeLog
> from  Tom Tromey  <tromey@xxxxxxxxxx>
> 
> 	* library/Makefile (OS): New macro.
> 	(ARCH): Likewise.
> 	(JDK_INCLUDES, JDK_OS_INCLUDES): Define; don't check to see if
> 	they are set externally.
> 	(INSTALL_DIR): New macro.
> 	(LIB_NAME_FULL_SPAWNER): Use it.
> 	(LIB_NAME_FULL_PTY): Likewise.
> 	($(LIB_NAME_FULL_SPAWNER)): Make output directory.
> 	($(LIB_NAME_FULL_PTY)): Likewise.
> 

Done.



Back to the top