public NdkOptions(@NonNull NdkOptions ndkConfig) { moduleName = ndkConfig.moduleName; cFlags = ndkConfig.cFlags; setLdLibs(ndkConfig.ldLibs); setAbiFilters(ndkConfig.abiFilters); }
@Override @SuppressWarnings("RedundantIfStatement") public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof BuildType)) return false; if (!super.equals(o)) return false; BuildType other = (BuildType) o; if (!ndkConfig.equals(other.ndkConfig)) return false; if (!jackOptions.equals(other.jackOptions)) return false; if (!javaCompileOptions.equals(other.javaCompileOptions)) return false; if (shrinkResources != other.isShrinkResources()) return false; return true; }
@VisibleForTesting BuildType(@NonNull String name, @NonNull Project project, @NonNull Logger logger) { super(name); this.project = project; this.logger = logger; jackOptions = new JackOptions(); javaCompileOptions = new JavaCompileOptions(); shaderOptions = new ShaderOptions(); ndkConfig = new NdkOptions(); externalNativeBuildOptions = new ExternalNativeBuildOptions(); }
@Override protected void _initWith(@NonNull BaseConfig that) { super._initWith(that); BuildType thatBuildType = (BuildType) that; ndkConfig._initWith(thatBuildType.getNdkConfig()); jackOptions._initWith(thatBuildType.getJackOptions()); javaCompileOptions.getAnnotationProcessorOptions()._initWith( thatBuildType.getJavaCompileOptions().getAnnotationProcessorOptions()); shrinkResources = thatBuildType.isShrinkResources(); shaderOptions._initWith(thatBuildType.getShaders()); externalNativeBuildOptions._initWith(thatBuildType.getExternalNativeBuildOptions()); useProguard = thatBuildType.isUseProguard(); }
public void _initWith(@NonNull CoreNdkOptions ndkConfig) { moduleName = ndkConfig.getModuleName(); cFlags = ndkConfig.getcFlags(); setLdLibs(ndkConfig.getLdLibs()); setAbiFilters(ndkConfig.getAbiFilters()); }