compiler/jv_dart_compiler.st
changeset 1 46dd2b3b6974
child 3 46c322c66a29
equal deleted inserted replaced
0:947ac083e76c 1:46dd2b3b6974
       
     1 "{ Package: 'jv:dart/compiler' }"
       
     2 
       
     3 LibraryDefinition subclass:#jv_dart_compiler
       
     4 	instanceVariableNames:''
       
     5 	classVariableNames:''
       
     6 	poolDictionaries:''
       
     7 	category:'* Projects & Packages *'
       
     8 !
       
     9 
       
    10 
       
    11 !jv_dart_compiler class methodsFor:'description'!
       
    12 
       
    13 excludedFromPreRequisites
       
    14     "list all packages which should be ignored in the automatic
       
    15      preRequisites scan. See #preRequisites for more."
       
    16 
       
    17     ^ #(
       
    18     )
       
    19 !
       
    20 
       
    21 preRequisites
       
    22     "list all required packages.
       
    23      This list can be maintained manually or (better) generated and
       
    24      updated by scanning the superclass hierarchies and looking for
       
    25      global variable accesses. (the browser has a menu function for that)
       
    26      Howevery, often too much is found, and you may want to explicitely
       
    27      exclude individual packages in the #excludedFromPrerequisites method."
       
    28 
       
    29     ^ #(
       
    30         #'stx:libbasic'    "LibraryDefinition - superclass of jv_dart "
       
    31     )
       
    32 ! !
       
    33 
       
    34 !jv_dart_compiler class methodsFor:'description - contents'!
       
    35 
       
    36 classNamesAndAttributes
       
    37     "lists the classes which are to be included in the project.
       
    38      Each entry in the list may be: a single class-name (symbol),
       
    39      or an array-literal consisting of class name and attributes.
       
    40      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
       
    41 
       
    42     ^ #(
       
    43         "<className> or (<className> attributes...) in load order"
       
    44         #'jv_dart_compiler'
       
    45         #'Dart::ScannerBase'
       
    46         #'Dart::Parser'
       
    47         #'Dart::Scanner'
       
    48     )
       
    49 
       
    50     "Modified: / 10-01-2013 / 13:15:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    51 !
       
    52 
       
    53 extensionMethodNames
       
    54     "lists the extension methods which are to be included in the project.
       
    55      Entries are 2-element array literals, consisting of class-name and selector."
       
    56 
       
    57     ^ #(
       
    58     )
       
    59 ! !
       
    60 
       
    61 !jv_dart_compiler class methodsFor:'description - project information'!
       
    62 
       
    63 applicationIconFileName
       
    64     "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
       
    65 
       
    66     ^ nil
       
    67     "/ ^ self applicationName
       
    68 !
       
    69 
       
    70 companyName
       
    71     "Return a companyname which will appear in <lib>.rc"
       
    72 
       
    73     ^ 'My Company'
       
    74 !
       
    75 
       
    76 description
       
    77     "Return a description string which will appear in vc.def / bc.def"
       
    78 
       
    79     ^ 'Class Library'
       
    80 !
       
    81 
       
    82 legalCopyright
       
    83     "Return a copyright string which will appear in <lib>.rc"
       
    84 
       
    85     ^ 'My CopyRight or CopyLeft'
       
    86 !
       
    87 
       
    88 productInstallDirBaseName
       
    89     "Returns a default installDir which will appear in <app>.nsi.
       
    90      This is usually not the one you want to keep"
       
    91 
       
    92     ^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
       
    93 !
       
    94 
       
    95 productName
       
    96     "Return a product name which will appear in <lib>.rc"
       
    97 
       
    98     ^ 'ProductName'
       
    99 ! !
       
   100 
       
   101 !jv_dart_compiler class methodsFor:'documentation'!
       
   102 
       
   103 version_HG
       
   104 
       
   105     ^ '$Changeset: <not expanded> $'
       
   106 ! !