• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom Platforms for Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Platforms for Xcode


  • Subject: Custom Platforms for Xcode
  • From: Greg Hulands <email@hidden>
  • Date: Tue, 28 Oct 2008 13:17:08 -0700

Hi,
I searched the list looking for some info on building a custom platform for Xcode, but couldn't find anything. I am building one for AVR microcontrollers so I can do all my development from within Xcode. I have all the templates loading fine and showing up in the UI. The problem I am having is when I try to compile.


Checking Dependencies
No architectures to compile for (ARCHS=i386, VALID_ARCHS=).

I have setup the AVR Architectures.xcspec like so:

(
    // 8-Bit
    {   Type = Architecture;
        Identifier = Standard;
        Name = "AVR";
        Description = "AVR Architecture";
        ListInEnum = YES;
        SortNumber = 1;
        RealArchitectures = ( avr );
        ArchitectureSetting = "ARCHS_AVR";
    },

)

The AVR ProductTypes.xcspec:
(
// Static library
{ Type = ProductType;
Identifier = com.apple.product-type.library.static;
Class = PBXStaticLibraryProductType;
Name = "Static Library";
Description = "Static library";
IconNamePrefix = "TargetPlugin";
DefaultTargetName = "Static Library";
DefaultBuildProperties = {
FULL_PRODUCT_NAME = "$(EXECUTABLE_NAME)";
MACH_O_TYPE = "staticlib";
REZ_EXECUTABLE = YES;
EXECUTABLE_PREFIX = "lib";
EXECUTABLE_SUFFIX = ".$(EXECUTABLE_EXTENSION)";
EXECUTABLE_EXTENSION = "a";
PUBLIC_HEADERS_FOLDER_PATH = "$(SDKROOT)/hardware/tools/ avr/avr/include";
PRIVATE_HEADERS_FOLDER_PATH = "$(SDKROOT)/hardware/tools/ avr/avr/include";
INSTALL_PATH = "/usr/local/lib";
FRAMEWORK_FLAG_PREFIX = "-framework";
LIBRARY_FLAG_PREFIX = "-l";
LIBRARY_FLAG_NOSPACE = YES;
STRIP_STYLE = "debugging";
SEPARATE_STRIP = YES;
GCC_ENABLE_SYMBOL_SEPARATION = NO;
};
AlwaysPerformSeparateStrip = YES;
PackageTypes = (
com.apple.package-type.static-library // default
);
},
)


And the PackageTypes.xcspec like so:

(
// Static library ('ar' archive containing .o files)
{ Type = PackageType;
Identifier = com.apple.package-type.static-library;
Name = "Mach-O Static Library";
Description = "Mach-O static library";
DefaultBuildSettings = {
EXECUTABLE_PREFIX = "lib";
EXECUTABLE_SUFFIX = ".a";
EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$ (EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)";
EXECUTABLE_PATH = "$(EXECUTABLE_NAME)";
};
ProductReference = {
FileType = archive.ar;
Name = "$(EXECUTABLE_NAME)";
IsLaunchable = NO;
};
},
)


Currently I'm just trying to get a static library to build before I go on to anything else.

I have also copied the GCC xcplugin that is in the iPhone platform as a reference to setup the compiler. I removed all the references to i386 and changed them to be 'avr'.

I know that creating any extensions to Xcode is not officially supported, so I'm wondering if anyone has any pointers to offer me.

Is there a way to turn on some debugging information that can help me out in this endeavour?

Thanks,
Greg

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Custom Platforms for Xcode
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: gcc 4.2 disables PowerPC G3 support
  • Next by Date: Re: nibtool l10n issue
  • Previous by thread: Re: Can't include objective c file in carbon project
  • Next by thread: Re: Custom Platforms for Xcode
  • Index(es):
    • Date
    • Thread