udis86sx/jv_dragonfly_udis86sx.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 27 Jan 2016 08:34:29 +0000
changeset 15 eccc20e9c2e1
parent 14 1945311c3fe2
child 22 9ee423bb2e37
permissions -rw-r--r--
Added subpackage c1 for LLVM based compiler.

"{ Package: 'jv:dragonfly/udis86sx' }"

"{ NameSpace: Smalltalk }"

LibraryDefinition subclass:#jv_dragonfly_udis86sx
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'* Projects & Packages *'
!


!jv_dragonfly_udis86sx class methodsFor:'description'!

additionalLinkLibraries_make_dot_proto
    ^ 'udis86/libudis86/.libs/libudis86.a'

    "Created: / 09-12-2015 / 08:08:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    "Modified: / 09-12-2015 / 09:18:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

additionalRules_make_dot_proto
^ '
udis86/libudis86/.libs/libudis86.a: udis86/Makefile
	$(MAKE) -C udis86

udis86/Makefile: udis86/configure
	cd udis86 && CFLAGS="$(CCCONFOPT) -fPIC" ./configure

'

    "Created: / 09-12-2015 / 09:18:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

additionalTargets_make_dot_proto
    ^ 'udis86/libudis86/.libs/libudis86.a'

    "Created: / 09-12-2015 / 08:08:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    "Modified: / 09-12-2015 / 09:18:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

excludedFromPreRequisites
    "list packages which are to be explicitely excluded from the automatic constructed
     prerequisites list. If empty, everything that is found along the inheritance of any of
     my classes is considered to be a prerequisite package."

    ^ #(
    )
!

mandatoryPreRequisites
    "list packages which are mandatory as a prerequisite.
     This are packages containing superclasses of my classes and classes which
     are extended by myself.
     They are mandatory, because we need these packages as a prerequisite for loading and compiling.
     This method is generated automatically,
     by searching along the inheritance chain of all of my classes."

    ^ #(
        #'stx:libbasic'    "LibraryDefinition - superclass of jv_dragonfly_udis86sx"
    )
!

referencedPreRequisites
    "list packages which are a prerequisite, because they contain
     classes which are referenced by my classes.
     We do not need these packages as a prerequisite for compiling or loading,
     however, a class from it may be referenced during execution and having it
     unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
     includes explicit checks for the package being present.
     This method is generated automatically,
     by searching all classes (and their packages) which are referenced by my classes."

    ^ #(
    )
!

subProjects
    "list packages which are known as subprojects.
     The generated makefile will enter those and make there as well.
     However: they are not forced to be loaded when a package is loaded;
     for those, redefine requiredPrerequisites."

    ^ #(
    )
! !

!jv_dragonfly_udis86sx class methodsFor:'description - compilation'!

localIncludes
    "allow for the specification of additional include directories"

    ^ '-Iudis86'

    "Created: / 10-12-2015 / 16:46:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!jv_dragonfly_udis86sx class methodsFor:'description - contents'!

classNamesAndAttributes
    "lists the classes which are to be included in the project.
     Each entry in the list may be: a single class-name (symbol),
     or an array-literal consisting of class name and attributes.
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."

    ^ #(
        "<className> or (<className> attributes...) in load order"
        UDIS86
        UDIS86Instruction
        #'jv_dragonfly_udis86sx'
    )
!

extensionMethodNames
    "list class/selector pairs of extensions.
     A correponding method with real names must be present in my concrete subclasses"

    ^ #(
    )
! !

!jv_dragonfly_udis86sx class methodsFor:'description - project information'!

companyName
    "Returns a company string which will appear in <lib>.rc.
     Under win32, this is placed into the dlls file-info"

    ^ 'Jan Vrany'

    "Modified: / 09-12-2015 / 07:59:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

description
    "Returns a description string which will appear in nt.def / bc.def"

    ^ 'X86 Disassembler'

    "Modified: / 09-12-2015 / 07:59:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

legalCopyright
    "Returns a copyright string which will appear in <lib>.rc.
     Under win32, this is placed into the dlls file-info"

    ^ 'Copyright (C) 2015-now Jan Vrany <jan.vrany@fit.cvut.cz>'

    "Modified: / 09-12-2015 / 08:00:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

productName
    "Returns a product name which will appear in <lib>.rc.
     Under win32, this is placed into the dlls file-info.
     This method is usually redefined in a concrete application definition"

    ^ 'udis86sx'

    "Modified: / 09-12-2015 / 08:00:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!jv_dragonfly_udis86sx class methodsFor:'documentation'!

version_HG
    ^ '$Changeset: <not expanded> $'
! !