Beispiel #1
0
 public override void Configure()
 {
     _outputDir = Environment.Combine(
         Environment.ExpandSingleLine("@(AssemblyDirectory || '.')")).TrimPath();
     _linker = new CilLinker(Log, Essentials);
     Scheduler.AddTransform(new CilTransform(this));
 }
Beispiel #2
0
 public CilTypeFactory(Backend backend, IEssentials essentials, CilLinker linker, ModuleBuilder module)
 {
     _backend    = backend;
     _essentials = essentials;
     _linker     = linker;
     _module     = module;
 }
Beispiel #3
0
        public MetadataGenerator(Disk disk, IBuildData data, IEssentials essentials,
                                 MetadataBackend backend, CilLinker linker, SourcePackage package,
                                 string outputDir)
            : base(disk)
        {
            _data       = data;
            _essentials = essentials;
            _backend    = backend;
            _package    = package;
            _linker     = linker;
            _outputDir  = outputDir;
            _assembly   = _linker.Universe.DefineDynamicAssembly(
                new AssemblyName(package.Name)
            {
                Version = package.ParseVersion(Log)
            },
                AssemblyBuilderAccess.Save,
                outputDir);
            var module = _assembly.DefineDynamicModule(
                package.Name,
                package.Name + ".dll",
                true);

            _types = new CilTypeFactory(backend, essentials, linker, module);
        }
Beispiel #4
0
 internal CilType(Backend backend, IEssentials essentials, CilLinker linker, TypeBuilder builder, DataType definition)
     : base(backend.Log)
 {
     _backend    = backend;
     _essentials = essentials;
     _linker     = linker;
     Builder     = builder;
     Definition  = definition;
 }
Beispiel #5
0
 public override void Configure()
 {
     _outputDir = Environment.Combine(
         Environment.ExpandSingleLine("@(AssemblyDirectory || '.')")).TrimPath();
     _linker = new CilLinker(Log, Essentials);
     Scheduler.AddTransform(new CilTransform(this));
     EnableReflection   = Environment.IsDefined("REFLECTION");
     TypeAliasAttribute = EnableReflection
                         ? ILFactory.GetType("Uno.Reflection.TypeAliasAttribute")
                         : DataType.Invalid;
 }
Beispiel #6
0
 public CilGenerator(Disk disk, IBuildData data, IEssentials essentials,
                     CilBackend backend, CilLinker linker, SourcePackage package,
                     string outputDir)
     : base(disk)
 {
     _data       = data;
     _essentials = essentials;
     _backend    = backend;
     _package    = package;
     _linker     = linker;
     _outputDir  = outputDir;
     _assembly   = _linker.Universe.DefineDynamicAssembly(
         new AssemblyName(package.Name) /*{Version = new Version(package.Version)}*/,
         AssemblyBuilderAccess.Save,
         outputDir);
     _module = _assembly.DefineDynamicModule(
         package.Name,
         package.Name + ".dll",
         true);
 }
Beispiel #7
0
 public CilType(CilLinker linker, TypeBuilder builder, DataType definition)
 {
     _linker    = linker;
     Builder    = builder;
     Definition = definition;
 }
Beispiel #8
0
 public override void Configure()
 {
     _linker = new CilLinker(Log, Essentials, true);
 }